4

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?

Zimm1
  • 433
  • 5
  • 16

2 Answers2

8

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"
      ]
    }
Brian Low
  • 11,605
  • 4
  • 58
  • 63
6

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

l5t
  • 578
  • 2
  • 5