有没有办法自动训练Wit.ai?

问题描述:

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

您可以查看其中一个应用的导出格式,并将其调整为在新应用中导入。 https://wit.ai/docs/recipes#manage-link

可以使用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" 
     ] 
    }