azure-language-understanding - 我们如何通过节点 js 代码中的 API 在 luis 中添加意图和话语
问题描述
我试图通过节点 js 代码添加意图和话语,但我没有得到任何端点,我们可以在其中以 json 格式设置数据意图和话语
解决方案
You'll want to use the Authoring REST API (v3 - Preview) or Authoring REST API (v2).
You can add intents via models > Create Intent
. You can add utterances via example utterances > Add label
.
Note, that in all of these {endpoint}
in the URL refers to the endpoint for the APIs, one of:
- Australia East - australiaeast.api.cognitive.microsoft.com
- West Europe - westeurope.api.cognitive.microsoft.com
- West US - westus.api.cognitive.microsoft.com
...and it's based off of your authoring region.
If you're not familiar with making API requests in Node, take a look at either Axios
or Node Fetch
to make the API calls.
推荐阅读
- javascript - 两个数组javascript的区别
- python - 为什么默认值不影响 sqlalchemy 中的表?
- python - Open CV Error: Multiple bounding boxes are being created around one single object during automated annotation attempt
- javascript - How should I combine debounce with a MutationObserver
- c++ - 终止进程并关闭所有打开的监听端口
- android - File Not Created in Android P
- python - Scipy Differential Evolution - init specifying start
- android - Android GCM Push notifications not received on some latest OS (Oreo and Pie)
- javascript - 在 Kendo Grid 上调用 JS 函数不起作用
- android - 在另一个活动中保存 Webview 的 cookie 登录