如何使 LUIS 响应匹配的实体

How to make LUIS respond with the matched entity

我正在为荷兰语设置 LUIS 服务。

我有这句话:

嗨,ik ben igor -> 意思是嗨,我是 igor

在仪表板中,我可以看到 Igor 已正确映射为 名称实体,但检索到的结果如下:

    {
        "query": "Hi, ik ben igor",
        "topScoringIntent": {
            "intent": "Greeting",
            "score": 0.462906122
        },
        "intents": [
            {
                "intent": "Greeting",
                "score": 0.462906122
            },
            {
                "intent": "None",
                "score": 0.41605103
            }
        ],
        "entities": [
            {
                "entity": "hi",
                "type": "Hey",
                "startIndex": 0,
                "endIndex": 1,
                "score": 0.9947428
            }
        ]
    }

有可能解决这个问题吗?我不想制作一个包含所有存在名称的短语列表。

设法训练 LUIS 甚至识别 asdaasdasd:

{
    "query": "Heey, ik ben asdaasdasd",
    "topScoringIntent": {
        "intent": "Greeting",
        "score": 0.5320666
    },
    "intents": [
        {
            "intent": "Greeting",
            "score": 0.5320666
        },
        {
            "intent": "None",
            "score": 0.236944184
        }
    ],
    "entities": [
        {
            "entity": "asdaasdasd",
            "type": "Name",
            "startIndex": 13,
            "endIndex": 22,
            "score": 0.8811139
        }
    ]
}

老实说,我没有关于如何做到这一点的好指南:

  • 使用示例实体位置添加多个示例语句
  • 这样做了大约 5 次
  • 不需要短语列表

我会接受这个答案,但是一旦有人解释 in-depth 并且从技术上讲幕后发生的事情,我会接受这个答案。