0

ワークスペースを作成し、会話サービスのインテント、エンティティ、およびダイアログを作成しました。起動ツールを使用して「試してみる」と、質問に対するワトソンのテキスト応答が表示されます。しかし、残りのクライアントを介して api コマンドを使用すると、テキスト出力が返されません。APIに使用した入力は

{
  "input": {
    "text": "increase the temperature of ac"
  }
}

そして、応答として私は次のを得ました

{
"input": {
"text": "increase the temperature of ac"
}-
"context": {
"conversation_id": "5a7ce4c2-c6be-4cb8-b728-19136457bf28"
"system": {
"dialog_stack": [1]
0:  "root"
-
"dialog_turn_counter": 1
"dialog_request_counter": 1
}-
}-
"entities": [1]
0:  {
"entity": "appliance"
"location": [2]
0:  28
1:  30
-
"value": "ac"
}-
-
"intents": [1]
0:  {
"intent": "turn_up"
"confidence": 0.9854193755106732
}-
-
"output": {
"log_messages": [0]
"text": [0]
"nodes_visited": [1]
0:  "node_1_1469526692057"
-
}-
}

JSON出力にテキストメッセージはありません

4

1 に答える 1

0

これは意図したとおりに機能しています。

Github Conversation demoを使用して、を検索すると、JSON で関連するノードを見つけることができます"conditions": "#turn_up"。関連ブロックはこちら。

{
  "go_to": {
    "return": null,
    "selector": "condition",
    "dialog_node": "node_11_1467233013716"
  },
  "output": {},
  "parent": null,
  "context": null,
  "created": "2016-07-22T04:55:54.661Z",
  "metadata": null,
  "conditions": "#turn_up",
  "description": null,
  "dialog_node": "node_10_1467233003109",
  "previous_sibling": "node_7_1467232789215"
},

または、会話 UI でブロックを検索して を探すこともできます#turn_up。例えば。

ここに画像の説明を入力

出力フィールドが空です。したがって、出力テキストは Conversation によって処理されません。

アプリケーション層で処理する必要があります。これには正当な理由があります。たとえば、独立したアンサー ストアを作成すると、技術者以外のユーザーが更新しやすくなります。または、Retrieve や Rank などに引き継ぎ、答えを見つけたい場合。

この場合、Car デモがこれをどのように処理するかについては、こちらのチュートリアル ビデオで詳しく説明されています。

https://youtu.be/wG2fuliRVNk

于 2016-09-11T09:58:32.400 に答える