基于Rasa NLU搭建中文语义

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
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容