有没有办法自动训练Wit.ai?
Is there a way to automatically train 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"
]
}
我知道 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"
]
}