facebook/duckling安装

方法一

stack安装

wget -qO- https://get.haskellstack.org/ | sh

pcre安装

  1. 下载安装包
  2. 安装
tar -zxvf pcre-8.32.tar.gz
./configure
make
make install

如果安装失败,提示下面错误:
regex-pcre > >=0.9.0 is required but it could not be found. 需要安装pkg-config。

sudo apt-get install pkg-config

duckling安装

  1. 编译和运行服务
stack build
stack exec duckling-example-exe
  1. 测试
curl -XPOST http://0.0.0.0:8000/parse --data 'locale=en_GB&text=tomorrow at eight'

方法二

ubuntu安装docker

运行镜像

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