Microsoft LUIS 无法识别较长话语的实体

问题描述 投票:0回答:0

我有两个问题:-

查询1 =

“加拿大多伦多一周后的天气状况如何”

查询2 =

“你有关于之后天气状况的任何信息吗 在加拿大多伦多一周”

当我将 query1 传递给 LUIS 时,它可以识别所有地理实体,但是当我通过第二个查询即 query2 时,它不会将加拿大识别为地理实体。

不知道为什么会这样,我想这可能是由于长度问题,但这看起来不太合理。任何修复它的帮助将不胜感激。

LUIS 应该能够将加拿大识别为一个地理实体:-

实体

{'datetimeV2': [{'type': 'duration', 'values': [{'timex': 'P1W', 'mod': 'after', 'resolution': [{'value': '604800'}]}]}], 'number': [1], 'geographyV2': [{'value': 'toronto', 'type': 'city'}], 'ontarioCities': [['toronto']], '$instance': {'datetimeV2': [{'type': 'builtin.datetimeV2.duration', 'text': 'after one week', 'startIndex': 63, 'length': 14, 'modelTypeId': 2, 'modelType': 'Prebuilt Entity Extractor', 'recognitionSources': ['model']}], 'number': [{'type': 'builtin.number', 'text': 'one', 'startIndex': 69, 'length': 3, 'modelTypeId': 2, 'modelType': 'Prebuilt Entity Extractor', 'recognitionSources': ['model']}], 'geographyV2': [{'type': 'builtin.geographyV2.city', 'text': 'toronto', 'startIndex': 81, 'length': 7, 'modelTypeId': 2, 'modelType': 'Prebuilt Entity Extractor', 'recognitionSources': ['model']}], 'ontarioCities': [{'type': 'ontarioCities', 'text': 'toronto', 'startIndex': 81, 'length': 7, 'modelTypeId': 5, 'modelType': 'List Entity Extractor', 'recognitionSources': ['model']}]}}

意图

{'placeIntelUc1': {'score': 0.832528}, 'weatherInfo': {'score': 0.3726014}, 'Property Search': {'score': 0.20544328}, 'General': {'score': 0.1473688}, 'q_sample-qna': {'score': 0.08081231}, 'placeIntelUc2': {'score': 0.030642297}, 'ToolsandCalculator': {'score': 0.025141854}, 'Seller': {'score': 0.01876985}, 'amortizedLoan': {'score': 0.014338155}, 'join as an agent': {'score': 0.009949833}, 'First_Time_Home_Buyer_Calculator': {'score': 0.009742849}, 'Greeting': {'score': 0.009159457}, 'affordableListPrice': {'score': 0.007994134}, 'mortgageCalculation': {'score': 0.007645437}, 'AgentSearch': {'score': 0.006931337}, 'ClosingGreeting': {'score': 0.006711768}, 'Debt_to_Income_Calculator': {'score': 0.006258902}, 'Land_Transfer_Tax_Calculator': {'score': 0.005341304}, 'None': {'score': 0.002321645}, 'mainMenu': {'score': 0.0015369229}, 'Abuse': {'score': 0.0003726106}}
nlp botframework azure-cognitive-services
© www.soinside.com 2019 - 2024. All rights reserved.