demo-chinese-text-binary-classification-with-bert
demo-chinese-text-binary-classification-with-bert copied to clipboard
UnparsedFlagAccessError: Trying to access flag --preserve_unused_tokens before flags were parsed.
INFO:tensorflow:Saver not created because there are no variables in the graph to restore INFO:tensorflow:Saver not created because there are no variables in the graph to restore INFO:tensorflow:Writing example 0 of 1799 INFO:tensorflow:Writing example 0 of 1799
UnparsedFlagAccessError Traceback (most recent call last)
7 frames /usr/local/lib/python3.6/dist-packages/absl/flags/_flagvalues.py in getattr(self, name) 489 # get too much noise. 490 logging.error(error_message) --> 491 raise _exceptions.UnparsedFlagAccessError(error_message) 492 493 def setattr(self, name, value):
UnparsedFlagAccessError: Trying to access flag --preserve_unused_tokens before flags were parsed.
请问为什么会出现这个问题啊
pip install bert-tensorflow==1.0.1 This will solve the error by installing the previous version. You can use the previous version till the developers fix this issue.