我想创建一个反馈机制,如果wit.ai无法理解某些命令,它可以建议用户选择的意图列表,并使用此命令我可以更新该实体下的同义词。
答案 0 :(得分:0)
您可以使用此网址获取所有意图:
curl -XGET 'https://api.wit.ai/entities/intent?v=20170101' -H "Authorization: Bearer $TOKEN"
{
"builtin" : false,
"doc" : "User-defined entity",
"exotic" : false,
"id" : "58731dcc-3180-43c9-46fd-8881447d9f0c",
"lang" : "en",
"lookups" : [ "trait" ],
"name" : "intent",
"values" : [ {
"value" : "demo-free",
"expressions" : [ "@Cortex, is demo free?", "Is demo free?" ]
}, {
"value" : "demo-info",
"expressions" : [ "@Cortex, who is using demo?", "@Cortex, Who's using demo?", "Who's using it?", "Who's using demo?" ]
}, {
"value" : "mongo-status",
"expressions" : [ "@Cortex, is mongo2 ok?", "@Cortex, how is mongo1?", "@Cortex, is mongo1 ok?", "@Cortex, is mongo ok>", "is mongo-1 ok?", "@Cortex, is mongodb ok?", "@Cortex, is mongo ok?", "how are the mongo servers?", "how are the mongod servers?", "is mongo ok", "is mongodb ok?", "Mongo status", "Check mongo status" ]
}, {
"value" : "cortex-help",
"expressions" : [ "what can you do for me?", "help me", "help", "how can you help me?", "What can you do?" ]
}, {
"value" : "mongo-logs",
"expressions" : [ "@Cortex, can I see all the db logs?", "@Cortex, can I see all db logs?", "@Cortex, can I see the mongo logs?", "can I see the mongo logs?", "can I see the mongod logs?", "let me see the mongo logs", "can I see the mongodb logs?", "show me mongo logs", "show me the mongo logs" ]
} ]
您可以使用它来选择每个意图的一个(或多个)示例,并向用户显示这些示例。