BERT-BiLSTM-CRF-NER icon indicating copy to clipboard operation
BERT-BiLSTM-CRF-NER copied to clipboard

只作预测,不做训练

Open Alethx opened this issue 5 years ago • 5 comments

bert-base-ner-train
-data_dir /home/lef/Desktop/
-output_dir /home/lef/Desktop/output
-init_checkpoint /home/lef/Desktop/bert_chinese/bert_model.ckpt
-bert_config_file /home/lef/Desktop/bert_chinese/bert_config.json
-vocab_file /home/lef/Desktop/bert_chinese/vocab.txt
-max_seq_length 128
-num_train_epochs 5
-do_train FALSE
-do_eval FALSE 已经训练好了一个模型,现在想在一个新的test集检测下,但是用了如上语句后,程序显示train和eval还是true,请问需要如何修改呢?

Alethx avatar Dec 24 '19 03:12 Alethx

-do_train -do_eval即可,不要带参数,为啥可以google

macanv avatar Dec 28 '19 07:12 macanv

刚刚试了一下,do_train do_eval后面没跟参数, 但是运行后显示error:bert-base-ner-train: error: argument -do_train: expected one argument。 请问是怎么回事呢

Alethx avatar Dec 28 '19 07:12 Alethx

-do_train -do_eval

macanv avatar Dec 30 '19 12:12 macanv

使用源码安装 @Alethx

ghost avatar Apr 09 '20 01:04 ghost

-do_train -do_eval

还是报这个错:bert-base-ner-train: error: argument -do_train: expected one argument

试了-do_train '' -do_eval '' 可以把train和eval设为False

duliping avatar Aug 27 '20 08:08 duliping