【问题标题】:Training LUIS to recognise a job ticket number训练 LUIS 识别工作票号
【发布时间】:2016-11-10 20:44:08
【问题描述】:

我正在尝试训练 LUIS 识别作业单上的状态更新请求(类似于 JIRA/GitHub 问题 ID)。作业单编号的格式为 [字母 S 或 s][一位或多位数字]。例如:

“S344 的状态是什么?”

意图:状态更新

实体:票 = S344

在标记多个话语后,LUIS 可以高可信度地识别意图,但永远无法识别票证实体,即使我使用我在标记话语中标记为实体的确切票证编号​​。

我也尝试添加正则表达式功能[sS]{1}\d+,但这似乎没有任何区别。

我需要做一些特别的事情来完成这项工作,还是我只需要坚持添加更多的训练话语?

【问题讨论】:

  • 您是否在添加话语后训练您的模型?然后,您是否要重新发布更新后的模型?
  • 两个问题都同意
  • 那听起来很奇怪......如果您发送新的话语,BOT 是否无法识别实体或在 LUIS 站点中它也无法识别票证?

标签: microsoft-cognitive azure-language-understanding


【解决方案1】:

我自己刚刚尝试过,在 7 次发言后,LUIS 可以很好地识别票证。我所做的是:

  1. 发送几个话语
  2. 火车
  3. 发送一组新的话语(不同的票号和短语)
  4. 再次训练

我为您导出了我的 LUIS 应用程序(下方和here

{
  "luis_schema_version": "1.3.0",
  "name": "testticket",
  "desc": "",
  "culture": "en-us",
  "intents": [
    {
      "name": "None"
    },
    {
      "name": "StatusUpdate"
    }
  ],
  "entities": [
    {
      "name": "Ticket"
    }
  ],
  "composites": [],
  "bing_entities": [],
  "actions": [],
  "model_features": [],
  "regex_features": [],
  "utterances": [
    {
      "text": "what is that status on s344?",
      "intent": "StatusUpdate",
      "entities": [
        {
          "entity": "Ticket",
          "startPos": 5,
          "endPos": 5
        }
      ]
    },
    {
      "text": "status of s124",
      "intent": "StatusUpdate",
      "entities": [
        {
          "entity": "Ticket",
          "startPos": 2,
          "endPos": 2
        }
      ]
    },
    {
      "text": "what's the status of s4",
      "intent": "StatusUpdate",
      "entities": []
    },
    {
      "text": "please tell me the status of s4",
      "intent": "StatusUpdate",
      "entities": [
        {
          "entity": "Ticket",
          "startPos": 6,
          "endPos": 6
        }
      ]
    },
    {
      "text": "whats the status of s5",
      "intent": "StatusUpdate",
      "entities": [
        {
          "entity": "Ticket",
          "startPos": 4,
          "endPos": 4
        }
      ]
    },
    {
      "text": "whats the status of s9",
      "intent": "StatusUpdate",
      "entities": [
        {
          "entity": "Ticket",
          "startPos": 4,
          "endPos": 4
        }
      ]
    },
    {
      "text": "please tell me the status of s24",
      "intent": "StatusUpdate",
      "entities": [
        {
          "entity": "Ticket",
          "startPos": 6,
          "endPos": 6
        }
      ]
    }
  ]
}

【讨论】:

  • 我又添加了一个话语,将其设为 7,现在它正在获取 Ticket。我被甩掉了,因为它只处理了 3 次左右的话语,以及我训练过的其他意图和实体。谢谢。
  • 很高兴它成功了!请将问题标记为已回答:)
猜你喜欢
  • 1970-01-01
  • 2018-05-25
  • 2014-06-04
  • 2018-04-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-02-17
  • 2018-11-19
相关资源
最近更新 更多