BERT模型:https://github.com/google-research/bert#fine-tuning-with-bert
环境:linux+python3+tensorflow,也有pytorch版。
1、下载:
BERT-Base, Chinese
: Chinese Simplified and Traditional, 12-layer, 768-hidden, 12-heads, 110M parameters
解压到指定目录。
2、Git Clone下https://github.com/google-research/bert.git
3、输入句子到指定文件:
echo '如图,a、b、c分别是数轴上A、B、C所对应的实数,试化简' > edp/input.txt
4、执行:
python3 bert/extract_features.py \
--input_file=edp/input.txt \
--output_file=edp/output.json \
--v