【问题标题】:Is there a way to automatically train Wit.ai?有没有办法自动训练 Wit.ai?
【发布时间】:2016-06-09 08:11:00
【问题描述】:

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

【问题讨论】:

    标签: wit.ai


    【解决方案1】:

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

    【讨论】:

      【解决方案2】:

      您可能可以查看您的一个应用程序的导出格式并对其进行调整以导入新应用程序。 https://wit.ai/docs/recipes#manage-link

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2020-09-21
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-11-21
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多