如何使LUIS响应匹配的实体

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

我正在为荷兰人建立一个LUIS服务。

我有这句话:

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

  • 其中Hi是一个名为Hey的简单实体,它可以有多个不同的值,例如(嘿,你好,...)我在短语中指定为列表。
  • 而Igor是一个名为Name的简单实体

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

    {
        "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
1个回答
0
投票

管理训练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个话语
  • 没有必要的短语列表

我会接受这个作为答案,但是一旦有人深入和技术上解释了封面背后发生的事情,我会接受这个答案。

© www.soinside.com 2019 - 2024. All rights reserved.