4

我知道可以通过手动验证案例来训练 Wit.ai 引擎,但是有没有办法使用一组定义的输入和输出来训练它?

4

2 回答 2

8

您可以使用wat.ai API创建intent实体:

curl -X "POST" "https://api.wit.ai/entities" \
    -H "Authorization: Bearer [token]" \
    -d "{\"id\":\"intent\",\"doc\":\"Describe the users overall intention\",\"lookups\":[\"trait\"]}"

然后用值训练它:

curl -X "POST" "https://api.wit.ai/entities/intent/values" \
    -H "Authorization: Bearer [token]" \
    -d $'{
      "value": "hello",
      "expressions": [
        "hi",
        "hello",
        "oi",
        "bonjour",
        "aloha"
      ]
    }
于 2016-08-18T19:29:16.237 回答
6

您可能可以查看其中一个应用程序的导出格式并对其进行调整以导入新应用程序。https://wit.ai/docs/recipes#manage-link

于 2016-07-13T04:46:42.870 回答