2016-06-09 141 views

回答

7

可以使用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" 
     ] 
    } 
相關問題