-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Trying to access flag --preserve_unused_tokens before flags were parsed #1133
Comments
I got same error, and it just happens today. |
Hey, this is an error caused due to a recent version update in bert. |
Do you know when will it be fixed by the developer? |
I am getting same error, any progress on this? |
Degraded the bert-tensorflow version, resolved! |
I got the same error today and downgrading bert-tf to 1.0.1 didn't fix it any other ideas? |
For me, downgrading bert-tensorflow from 1.0.4 to 1.0.1 solved the issue. |
Any news here? Downgrading can't be the final solution 🤔 |
For me, downgrading bert-tensorflow to 1.0.1 and downgrading tensorflow to 2.0.0 worked but w/ one work around. |
Thanks, it helps a lot! |
Is Google really using Bert in their search engine but ignoring updating it to TensorFlow 2.4? I have the error AttributeError: module 'tensorflow_estimator.python.estimator.api._v1.estimator' has no attribute 'TPUEstimator' and a search from Google led me here. |
same issue |
# train - Embedding # 分割 dataset - train + validation # BERT # 不明原因train完 1 epoch會卡住 # main ref: https://www.kaggle.com/gunesevitan/nlp-with-disaster-tweets-eda-cleaning-and-bert#3.-Target-and-N-grams # ref: google-research/bert#1133
Actually you should restart the kernel |
I'm having the exact same issue. When I try downgrading to 1.0.1 version I have this error :
Does anyone know any solution for this please ? |
Hello Friends, Cheers! |
what is the 'flags' variable? |
Trying to access flag --preserve_unused_tokens before flags were parsed. downgraden not really impact to me |
I set the flag manually. Not sure this is right but made my code work.
|
This fixes the issue |
Hey thanks,it worked for me |
thankyou,it fixes the issue |
I have been using the following code fine until this morning. I got an error for using
bert.run_classifier.convert_examples_to_features(test_InputExamples, label_list, MAX_SEQ_LENGTH, tokenizer)
Please let me know how to fix it
Error:
The text was updated successfully, but these errors were encountered: