bert_language_understanding icon indicating copy to clipboard operation
bert_language_understanding copied to clipboard

run_classifier_predict_online.py

Open bihui9968 opened this issue 6 years ago • 4 comments

modeling.BertConfig modeling.BertModel

error

bihui9968 avatar Nov 28 '18 07:11 bihui9968

what's error?

brightmart avatar Nov 28 '18 07:11 brightmart

there is no modeling.py and in train_bert_fine_tuning.py , line 175、179、180 cannot run, because compute_confuse_matrix_batch、 compute_micro_macro 、compute_micro_macro not be defined.

bihui9968 avatar Nov 28 '18 08:11 bihui9968

@bihui9968 modeling.py and tokennizaton.py these two files u could cope them from bert core, which is: https://github.com/google-research/bert.

yzho0907 avatar Nov 29 '18 08:11 yzho0907

In saver.restore(), error happened: NotFoundError (see above for traceback): Restoring from checkpoint failed. This is most likely due to a Variable name or other graph key that is missing from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint.

what should I do?

hongsong2021 avatar Dec 29 '18 13:12 hongsong2021