直接把本身的工做文檔導入的,因爲是在外企工做,因此都是英文寫的python
python run_classifier.py \git
--task_name=multiclass \github
--do_train=true \json
--do_eval=true \google
--data_dir=/home/wxl/bertProject/bertTextClassification/data\spa
--vocab_file=/home/wxl/bertProject/chinese_L-12_H-768_A-12/vocab.txt \code
--bert_config_file=/home/wxl/bertProject/chinese_L-12_H-768_A-12/bert_config.json \blog
--init_checkpoint=/home/wxl/bertProject/chinese_L-12_H-768_A-12/bert_model.ckpt \文檔
--max_seq_length=128 \get
--train_batch_size=16 \
--learning_rate=2e-5 \
--num_train_epochs=100.0 \
--output_dir=/home/wxl/bertProject/bertTextClassification/outputThree/
you would get the following result if success:
python run_classifier.py \
--task_name=multiclass \
--do_predict=true \
--data_dir=/home/wxl/bertProject/bertTextClassification/data\
--vocab_file=/home/wxl/bertProject/chinese_L-12_H-768_A-12/vocab.txt \
--bert_config_file=/home/wxl/bertProject/chinese_L-12_H-768_A-12/bert_config.json \
--init_checkpoint=/home/wxl/bertProject/bertTextClassification/outputThreeV1 \
--max_seq_length=128 \
--output_dir=/home/wxl/bertProject/bertTextClassification/mulitiPredictThreeV1/