1、安装jieba分词
pip install jieba
2、安装MITIE
git clone https://github.com/mit-nlp/MITIE.git
$ cd MITIE/tools/wordrep
$ mkdir build
$ cd build
$ cmake ..
$ cmake --build . --config Release
3、词向量数据模型
链接:https://pan.baidu.com/s/1kNENvlHLYWZIddmtWJ7Pdg 密码:p4vx
4、安装python-mitie:
pip install git+https://github.com/mit-nlp/MITIE.git
5、安装Rasa_nlu_cn
克隆github上的项目: https://github.com/crownpku/rasa_nlu_chi
$ git clone https://github.com/crownpku/rasa_nlu_chi.git
$ cd rasa_nlu_chi
$ python setup.py install
6、训练数据
https://rasahq.github.io/rasa-nlu-trainer/
7、执行
$ cd rasa_nlu_cn
$ python3 -m rasa_nlu.train -c sample_configs/config_jieba_mitie_sklearn_car.yml --data data/examples/xxx.json --path models
网友评论