https://github.com/hanxiao/bert-as-service#using-bert-as-service-to-serve-http-requests-in-json
1、以http方式启动:
bert-serving-start -model_dir=/Users/zard/Documents/NLP002/chinese_wwm_ext_L-12_H-768_A-12 -http_port 8125
2、安装http命令
pip install -U bert-serving-server[http]
3、以本地方式启动:bert-serving-start -model_dir /Users/zard/Documents/NLP002/chinese_wwm_ext_L-12_H-768_A-12 -num_worker=4