【问题标题】:Watson doesn't get zeros沃森没有得到零
【发布时间】:2018-02-05 23:07:55
【问题描述】:

假设我在 IBM Watson 中配置了一个对话服务,可以识别以单词和片段形式给出的数字。例如,如果我有号码1320,则可以发送为thirteen twentythirteen two zero等。 在第一种情况下,我将从对话服务中获得类似的信息:

{
    // ...
    "entities": [
        {
            "entity": "sys-number",
            "location": [
                0,
                5
            ],
            "value": "13",
            "confidence": 1,
            "metadata": {
                "numeric_value": 13
            }
        },
        {
            "entity": "sys-number",
            "location": [
                6,
                12
            ],
            "value": "20",
            "confidence": 1,
            "metadata": {
                "numeric_value": 20
            }
        }
    ]
    // ...
}

在第二种情况下(thirteen two zero):

{
    // ...
    "entities": [
        {
            "entity": "sys-number",
            "location": [
                0,
                5
            ],
            "value": "13",
            "confidence": 1,
            "metadata": {
                "numeric_value": 13
            }
        },
        {
            "entity": "sys-number",
            "location": [
                6,
                14
            ],
            "value": "2",
            "confidence": 1,
            "metadata": {
                "numeric_value": 2
            }
        }
    ]
    // ...
}

这里最大的问题是:我的零在哪里?

我知道这个问题被问了不止一次,但我找到的答案都没有解决我当前的问题。 我见过可以使用正则表达式的示例,但这是针对实际数字的,这里我有单词,而 Watson 是真正猜数字的人。

有没有办法在我的实体中为那个零获取第三个条目?或其他工作?还是我可能缺少的配置?

【问题讨论】:

    标签: watson-conversation


    【解决方案1】:

    我刚刚在 Watson Assistant 中尝试过这个,现在它得到了零。启用@sys-numbers 后,我的话语是thirteen two zero,我得到了这些实体:

    entities: [
    0: {
      entity: "sys-number", 
      location: [0, 8], 
      value: "13", 
      confidence: 1, 
      metadata: {numeric_value: 13}
    }
    1: {
      entity: "sys-number", 
      location: [9, 12], 
      value: "2", 
      confidence: 1, 
      metadata: {numeric_value: 2}
    }
    2: {
      entity: "sys-number", 
      location: [13, 17], 
      value: "0", 
      confidence: 1, 
      metadata: {numeric_value: 0}
    }
    ]
    

    可能是实体匹配得到了改进。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-03-11
      • 1970-01-01
      • 1970-01-01
      • 2018-03-30
      • 2017-02-23
      • 2019-05-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多