我正在ibm watson上部署test-bot,如https://github.com/eciggaar/text-bot所述,当我尝试使用CLI代工在本地部署代码时,它会出现以下错误.
我使用的是Nodejs版本6.10.3和npm版本5.0.4
有人可以帮我这个.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! text-bot@0.1.2 start: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the text-bot@0.1.2 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\PRERNA CHUGH\AppData\Roaming\npm-cache\_logs\2017-06-29T13_36_22_995Z-debug.log
Run Code Online (Sandbox Code Playgroud) 我只熟悉Watson助手,因为我已经完成了一些工作,但我从未使用Watson Assistant Solutions.
它是Watson助手之上的新API还是应用程序?我什么时候应该使用其中一种?
saas watson-conversation ibm-cloud watson-assistant watson-assistant-solutions
我已经创建了意图,实体和对话而没有任何问题.但是现在我正试图这样做,当用户发送"再见"时,应用程序将关闭.根据文件,我将不得不命名一个与意图一致的行动.我怎么做?是通过代码还是通过对话工作区平台?
我正在使用它,但这只是将它设置为空,
{
"context": {
"time": "",
"place": "",
"things": "",
"transport": ""
},
"output": {}
}
Run Code Online (Sandbox Code Playgroud)
我也试过"time": "null"
和"time": "$time.remove"
为什么 IBM 自然语言分类器返回 DecodeError ?我尝试对集合进行分类,但现在它返回错误。一周前,它运行完美
我的代码
classes_values = []
for i in range(0, len(materiasg), 10):
classes = natural_language_classifier.classify_collection(
classifier_id,
[{"text":materia} for materia in materiasg[i:(i+10 if i+10 < len(materiasg ) else len(materiasg))]]).get_result()
c = [sorted([[dicionario_classe["class_name"], dicionario_classe["confidence"]] for dicionario_classe in i["classes"]],key=lambda x: x[0]) for i in classes["collection"]]
classes_values += c
classes_values = np.array(classes_values)
Run Code Online (Sandbox Code Playgroud)
输出
---------------------------------------------------------------------------
DecodeError Traceback (most recent call last)
<ipython-input-80-d2b25928198b> in <module>()
3 classes = natural_language_classifier.classify_collection(
4 classifier_id,
----> 5 [{"text":materia} for materia in materiasg[i:(i+10 if i+10 < len(materiasg ) …
Run Code Online (Sandbox Code Playgroud) 我想知道如何在标准聊天中使用IBM Watson Conversation提取用户名:
例如:
bot: What is your name?
User respond: my name is Mike
bot: ok good morning Mike. -> i want this
Run Code Online (Sandbox Code Playgroud)
如何存储用户在聊天中输入的名称?所以机器人可以回答给定的名称.
提前致谢.
我想实现一个使用 IBM Watson Assistant 在网站上创建和训练的特定聊天机器人,该网站在后端使用 Django/flask,那么我如何在我的网站上集成该特定聊天机器人?请通过提供任何链接或视频指南来帮助我