Concept Insights annotateText 调用中 text_index 参数的含义?

Meaning of the text_index parameter in the Concept Insights annotateText call?

示例 /annotateText Concept Insights 调用提供以下示例输出:

curl -H 'Content-Type: text/plain' -d 'IBM announces new Watson services.' 

'https://watson-api-explorer.mybluemix.net/concept-insights/api/v2/graphs/wikipedia/en-20120601/annotate_text'

{
  "annotations": [
    {
      "concept": {
        "id": "/graphs/wikipedia/en-20120601/concepts/Watson_(computer)",
        "label": "Watson (computer)"
      },
      "score": 0.99832845,
      "text_index": [
        18,
        24
      ]
    },
    {
      "concept": {
        "id": "/graphs/wikipedia/en-20120601/concepts/IBM",
        "label": "IBM"
      },
      "score": 0.9980473,
      "text_index": [
        0,
        3
      ]
    }
  ]
}

返回的 text_index 参数是什么意思?

text_index 告诉您识别概念的开始和结束位置。

在您的示例中,概念 IBM_Watson 在片段 IBM announces new Watson 中被识别。