1

/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返されるパラメータの意味は何ですか?

4

1 に答える 1

2

text_index特定されたコンセプトの開始位置と終了位置を示します。

あなたの例では、概念IBM_Watsonはスニペットで識別されましたIBM announces new Watson

于 2015-12-11T07:28:42.777 に答える