Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to automatically train Wit.ai?

Tags:

wit.ai

I know Wit.ai engine can be trained by manually validate cases, but is there a way to train it with a set of defined inputs and outputs?

like image 366
Zimm1 Avatar asked Dec 08 '22 22:12

Zimm1


2 Answers

You can use the wat.ai API to create an intent entity:

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

and then train it with values:

curl -X "POST" "https://api.wit.ai/entities/intent/values" \
    -H "Authorization: Bearer [token]" \
    -d $'{
      "value": "hello",
      "expressions": [
        "hi",
        "hello",
        "oi",
        "bonjour",
        "aloha"
      ]
    }
like image 147
Brian Low Avatar answered Jan 18 '23 04:01

Brian Low


you can probably look at the export format of one of your app and tweak it to import in a new app. https://wit.ai/docs/recipes#manage-link

like image 28
l5t Avatar answered Jan 18 '23 04:01

l5t