我如何向 wit.ai 中的用户建议意图?
How can i suggest intents to user in wit.ai?
我想创建一个反馈机制,如果 wit.ai 无法理解某些命令,它可以建议用户选择的意图列表,并使用它我可以更新该实体下的同义词。
您可以使用此 url 获取所有意图:
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" ]
} ]
您可以使用它来为每个意图选择一个(或多个)示例并将其展示给您的用户。
我想创建一个反馈机制,如果 wit.ai 无法理解某些命令,它可以建议用户选择的意图列表,并使用它我可以更新该实体下的同义词。
您可以使用此 url 获取所有意图:
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" ]
} ]
您可以使用它来为每个意图选择一个(或多个)示例并将其展示给您的用户。