no attribute 'get_assigment_map_from_checkpoint'
INFO:tensorflow:Error recorded from training_loop: 'module' object has no attribute 'get_assigment_map_from_checkpoint'
INFO:tensorflow:training_loop marked as finished
WARNING:tensorflow:Reraising captured error
Traceback (most recent call last):
File "run_scorer.py", line 759, in
here is my file:
export BERT_BASE_DIR=/home/user/bert/uncased_L-12_H-768_A-12
export GLUE_DIR=/home/user/bert/glue_data
python run_scorer.py \
--do_eval=true \
--task_name=Sts \
--do_train=true \
--data_dir=$GLUE_DIR/STS-B \
--vocab_file=$BERT_BASE_DIR/vocab.txt \
--bert_config_file=$BERT_BASE_DIR/bert_config.json \
--init_checkpoint=$BERT_BASE_DIR/bert_model.ckpt \
--max_seq_length=128 \
--train_batch_size=32 \
--learning_rate=2e-5 \
--num_train_epochs=3.0 \
--output_dir=/home/user/bert/STS_output/
my tensorflow version :
>>> import tensorflow as tf
>>> print(tf.__version__)
1.12.0
>>>
i use this python file: run_scorer.py
There was a typo in the original function fname, change it to assignment (with an n after the g)
On Thu, Dec 13, 2018 at 8:06 PM JustinRong [email protected] wrote:
i use this python file:
https://github.com/Colanim/BERT_STS-B/blob/master/run_scorer.py
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/google-research/bert/issues/267#issuecomment-447206692, or mute the thread https://github.com/notifications/unsubscribe-auth/AqbD3qaUAUtNsAll-aJHYKFZLpOAc4G4ks5u4yPAgaJpZM4ZS2FT .
@jacobdevlin-google It works, thank you
Hi
I see there is no task added for the QQP Bert model. I have added QQP processor in both "run_classifier.py" and "run_classifier_with_tfhub.py" along with the class "class QqpProcessor(DataProcessor):" in run_classifier.py file. I see my tf version is higher than 1.12.0 which is 1.15.0 and in TPU I added the below lines to incorperate QQP task to include QQP processor.
processors = { "cola": run_classifier.ColaProcessor, "mnli": run_classifier.MnliProcessor, "mrpc": run_classifier.MrpcProcessor, "qqp": run_classifier.QqpProcessor, }
but still I am getting attribute error
AttributeError: module 'run_classifier' has no attribute 'QqpProcessor'
kindly advice. Do I need to change any where else to include QQP task?