[英]IBM Watson Assistant: How can I filter messages for “anything else”?
In Analytics > User conversations, I would like to filter out the messages which my Watson Assistant was unable to answer in its conversations, ie, when it returns the anything_else reply. 在“分析”>“用户对话”中,我想过滤掉Watson Assistant在对话中无法回答的消息,即当它返回any_else答复时。
But since anything_else is not an intent nor an entity, I can't filter messages by it in the UI. 但是由于everything_else既不是意图也不是实体,因此我无法在UI中通过它过滤消息。 Is it possible to therefore filter messages by the assistant's reply, like you can with user statements?
因此,是否可以像使用用户语句一样通过助手的答复过滤邮件? That way I can filter out each time the assistant answered "I don't understand".
这样,我每次助理回答“我听不懂”时就可以过滤掉。
IBM Watson Assistant offers the log in the Analytics section of it UI and, IMHO more powerful, via REST API with filter expressions . IBM Watson Assistant在UI的Analytics(分析)部分中提供了日志,而IMHO通过具有过滤表达式的REST API提供了更强大的功能。 With that API you can either download all logs and filter "offline" or apply some expressions.
使用该API,您可以下载所有日志并过滤“离线”或应用某些表达式。 I recommend reading the documentation about how to query the "other" fields which includes the user responses.
我建议阅读有关如何查询“其他”字段 (包括用户响应)的文档。
I have written Python tools for Watson Assistant using the V1 and V2 APIs. 我已经使用V1和V2 API 为Watson Assistant编写了Python工具 。 The V1 tool is able to download or query the logs.
V1工具能够下载或查询日志。 An option is to download all available logs, then use jq to filter them.
一种选择是下载所有可用日志,然后使用jq过滤它们。
python wctool.py -logs -config config.json.event -id 28ac4bcb-2aae-41aa-87ac-2e6074e1356a > logs201904.out
This gives you the information about which nodes were visited: 这为您提供了有关访问了哪些节点的信息:
cat logs201904.out | jq -r '.logs | .[]
| .response.output.nodes_visited '
Filter for log records that visited "Anything else": 筛选访问“其他”的日志记录:
cat logs201904.out | jq -r '.logs | .[] | .response | select(
.output.nodes_visited[] | contains("Anything else")) '
anything_else
means either an intent was not found, or the confidence was < 0.2. anything_else
表示未找到意图,或置信度<0.2。
Filter looking for intents = [], or confidence of first intent is below 20% 筛选以查找意图= [],或第一个意图的置信度低于20%
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.