I have 2 questions.
python run_classifier.py
--task_name=COLA
--do_predict=true
--data_dir=$GLUE_DIR/CoLA
--vocab_file=$BERT_BASE_DIR/vocab.txt
--bert_config_file=$BERT_BASE_DIR/bert_config.json
--init_checkpoint=$TRAINED_CLASSIFIER
--max_seq_length=128
--output_dir=/tmp/cola_output/
export TRAINED_CLASSIFIER = /tmp/cola_output/model.ckpt-1603
i.e. is the path to the trained classifier the path to the latest model checkpoint?
--data_dir=$GLUE_DIR/CoLA is the input folder
thank you HaodaY
i have the same question to ask, there is not the specific path of TRAINED_CLASSIFIER in the README instructions, have u alreadly pointed out the question?
I figured out the answer to my question #2 above. The weights of the trained classifier will be in the output_dir directory you specified as a parameter when your trained the classifier.
So in my example above, the weights of the trained classifier were saved to
--output_dir=/tmp/cola_output/
Look in that folder to see what the highest numbered model.ckpt file is and then set TRAINED_CLASSIFIER to something like:
export TRAINED_CLASSIFIER = /tmp/cola_output/model.ckpt-1603
has anyone noticed that the output is sort of interesting? as it looks really one-sided?
@PaulZhangIsing what do you mean it looks really one-sided?
Most helpful comment
I figured out the answer to my question #2 above. The weights of the trained classifier will be in the output_dir directory you specified as a parameter when your trained the classifier.
So in my example above, the weights of the trained classifier were saved to
--output_dir=/tmp/cola_output/
Look in that folder to see what the highest numbered model.ckpt file is and then set TRAINED_CLASSIFIER to something like:
export TRAINED_CLASSIFIER = /tmp/cola_output/model.ckpt-1603