Recently used bert Process for entity recognition , After taking over the code, the test passed , But put the code in the jupyter Try to run , The result is wrong :

UnrecognizedFlagError: Unknown command line flag 'f' ( Please refer to the end of the article for all error information )

terms of settlement : to TensorFlow Initialize a f , Or designated f label , Before project error report ( It's better to start ) Add the following code to the location :

tf.app.flags.DEFINE_string('f', '', 'kernel')

All wrong information :

---------------------------------------------------------------------------
UnrecognizedFlagError                     Traceback (most recent call last)
<ipython-input-8-608fc881813d> in <module>()
----> 1 bert_config =
modeling.BertConfig.from_json_file(FLAGS.bert_config_file)

~/anaconda3/envs/tensorflow-cpu/lib/python3.6/site-packages/tensorflow/python/platform/flags.py
in __getattr__(self, name)
     82     # a flag.
     83     if not wrapped.is_parsed():
---> 84       wrapped(_sys.argv)
     85     return wrapped.__getattr__(name)
     86 

~/anaconda3/envs/tensorflow-cpu/lib/python3.6/site-packages/absl/flags/_flagvalues.py
in __call__(self, argv, known_only)
    631       suggestions = _helpers.get_flag_suggestions(name, list(self))
    632       raise _exceptions.UnrecognizedFlagError(
--> 633           name, value, suggestions=suggestions)
    634 
    635     self.mark_as_parsed()

UnrecognizedFlagError: Unknown command line flag 'f'
 

Technology
©2019-2020 Toolsou All rights reserved,
What are the protection measures for website security ? Talking about uni-app Page value transfer problem Remember once EventBus Project issues caused by memory leaks I've been drinking soft water for three years ? What is the use of soft water and water softener Time conversion front desk will 2020-07-17T03:07:02.000+0000 Into 2020-07-17 11:07:02 Chuan Shen Count the number of letters (java Language implementation ) Time format 2020-01-13T16:00:00.000Z Medium T and Z What do they mean , How to deal with it msf Generate Trojan horse attack android mobile phone The world's first free open source ERP Odoo Ubuntu The best development environment What's the difference in server prices ?