首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Bing SpellChecker在LUIS.ai中的应用

Bing SpellChecker在LUIS.ai中的应用
EN

Stack Overflow用户
提问于 2022-05-13 13:08:27
回答 1查看 55关注 0票数 1

我试图提高LUIS意图预测的准确性。因为漏掉一封信会导致路易斯产生错误的意图。我使用教程,但是在alteredQuery返回表单LUIS中仍然没有承诺的密钥。

期望

代码语言:javascript
复制
  "query": "bouk me a fliht to kayro",
  "prediction": {
    "alteredQuery": "book me a flight to cairo",
    "topIntent": "book a flight",
    "intents": {
      "book a flight": {
        "score": 0.9480589
      }
      "None": {
        "score": 0.0332136229
      }
    },
    "entities": {}
  }
}

REALITY

代码语言:javascript
复制
  "query": "bouk me a fliht to kayro",
  "prediction": {
    "topIntent": "book a flight",
    "intents": {
      "book a flight": {
        "score": 0.9480589
      }
      "None": {
        "score": 0.0332136229
      }
    },
    "entities": {}
  }
}

我就是这样用它的:

代码语言:javascript
复制
const luisConfig: LuisApplication = {
    applicationId: [APP_ID_GOES_HERE],
    endpointKey: [KEY_GOES_HERE],
    endpoint: [ENDPOINT_GOES_HERE],
};

const recognizerOptions: LuisRecognizerOptionsV2 = {
    apiVersion: 'v2',
    bingSpellCheckSubscriptionKey: [KEY_GOES_HERE];
    includeAllIntents: true,
    log: true,
    spellCheck: true,
    log: true,
    includeInstanceData: true
};

const luisRecognizer = new LuisRecognizer(luisConfig, recognizerOptions, true);
EN

回答 1

Stack Overflow用户

发布于 2022-09-19 16:42:21

我也有同样的问题。如果我直接调用API:

代码语言:javascript
复制
/luis/prediction/v3.0/apps/<xxxxx>/slots/production/predict?verbose=true&show-all-intents=false&log=true&subscription-key=<xxxxx>&mkt-bing-spell-check-key=<xxxxx>&query=gretings

响应没有对象"alteredQuery“。

Im也尝试使用更多的参数,结果也是一样的:

代码语言:javascript
复制
https://<xxxxx>.cognitiveservices.azure.com/luis/prediction/v3.0/apps/<xxxxx>/slots/production/predict?verbose=true&show-all-intents=false&log=true&subscription-key=<xxxxx>&spellCheck=true&mkt-bing-spell-check-key=<xxxxx>&bing-spell-check-subscription-key=<xxxxx>&query=gretings

如果我用Ocp订阅-键头直接调用BING API,它们就会正确地响应:

代码语言:javascript
复制
https://api.bing.microsoft.com/v7.0/spellcheck?text=gretings
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72230124

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档