MAC下用Rasa_NLU 构建NLU服务

1、安装Anaconda

创建一个rasa-nlu的环境    conda create -n rasa-nlu python=3.6

conda activate rasa-nlu

2、安装rasa

下载git包(git: https://github.com/crownpku/Rasa_NLU_Chi.git) 

然后进入Rasa_NLU_Chi文件夹下,在终端输入   python setup.py install 命令安装

3、安装sklearn 以及sklearn-crfsuite

pip install -U scikit-learn sklearn-crfsuite

4、安装MITIE

pip install -r requirements.txt  安装依赖包
非必须:pip install scikit-learn==0.19.1  修改scikit-learn版本解决_main_  -  bad input shape(1,5)问题

git clone https://github.com/mit-nlp/MITIE.git 下载MITIE
然后进入到MITIE文件下,在终端输入  python setup.py install 命令安装

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章