更新:下面提到的 stackoverflow 给出了另一种解决方案,即导入 json 并用正确格式的数据替换文本。我现在想看看我如何适应给定的格式,它看起来像这样:
{
"text" : "usersentence",
"entities" : [
{
"entity" : "intent",
"value" : "\"valueofintent\"",
"start" : lenghtstart,
"end" : lengthend
}
]
}
Run Code Online (Sandbox Code Playgroud)
我们有一个包含我们创建的数据集的 csv/json 文件。我们正在尝试将其导入 wit.ai,而无需手动执行。我在网上找到了 2 个资源来解释解决方案,但我在实施时被卡住了。
找到初始链接:如何将 wit.ai 与现有数据行一起使用?
上面的链接把我送到了这个:https : //github.com/wit-ai/wit-api-only-tutorial/blob/master/README.md
我无法理解如何将他使用的 /samples 替换为我自己的数据链接。此外,我在他提到的帖子/示例 API 上找不到任何信息。
我找到的第二个链接。仍然无法实现数据导入:https : //chunksofco.de/wit-ai-explained-part-3-building-a-bot-with-sails-js-b4b801a2f7a5
wit.ai ×1