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,
C++ of string of compare usage MySQL Basics Commonly used sentence ( Add / delete / modify query )C Language of a Gobang game implementation QT5.9 Use of learning notes QSqlQuery Method of Qt Getting Started tutorial 【 Basic controls 】QCalendarWidget calendar control java Polymorphic array of web Front end signature plug-in _signature_pad Plug in implements electronic signature function centos7 install RabbitMqspringboot use redis Experiment 4 Automated test tools - software test