demo-chinese-text-binary-classification-with-bert icon indicating copy to clipboard operation
demo-chinese-text-binary-classification-with-bert copied to clipboard

UnparsedFlagAccessError: Trying to access flag --preserve_unused_tokens before flags were parsed.

Open JennieGerhardt opened this issue 4 years ago • 1 comments

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) in () ----> 1 result, estimator = run_on_dfs(train, test, **myparam)

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.

请问为什么会出现这个问题啊

JennieGerhardt avatar Sep 08 '20 15:09 JennieGerhardt

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.

steven140811 avatar Nov 05 '20 03:11 steven140811