想在Rasa_Nlu中使用小鸭.在其中使用小鸭的先决条件是什么



我在rasa_nlu的config.yml文件中使用小鸭子管道,我也启动了8080端口服务器,但是当我运行rasa_nlu.evaluate时,我收到错误2019-08-25 16:27:00错误rasa_nlu.extractors.duckling_http_extractor - 无法连接到小鸭http服务器。确保小鸭服务器正在运行,并且在配置中设置了正确的主机和端口。有关如何运行服务器的更多信息可以在 github 上找到:https://github.com/facebook/duckling#quickstart

Error: HTTPConnectionPool(host='0.0.0.0', port=8000): Max retries exceeded with url: /parse (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000001E393E68978>: Failed to establish a new connection: [WinError 10049] The requested address is not valid in its context'))

我已经在本地主机和端口 8080 中启动了小鸭服务器,它正在运行。 http://0.0.0.0:8000/.但错误说

Failed to connect Duckling server

Config.yml 文件

language: "en"
pipeline:
- name: "DucklingHTTPExtractor"
# url of the running duckling server
url: "http://0.0.0.0:8000"
# dimensions to extract
dimensions: ["time"]
- name : "nlp_spacy"

预期结果是:- 当用户输入"明天"时。我应该得到明天的约会。例如,如果今天日期是 25-08-2019 .SO 输出应为 26-08-2019

尝试使用 localhost 而不是 "0.0.0.0">

- name: "DucklingHTTPExtractor"
url: "http://localhost:8000"
dimensions:
- time

最新更新