キー フレーズ抽出

完了

キー フレーズ抽出は、1 つまたは複数のドキュメントのテキストを評価し、そのドキュメントのコンテキストについての要点を特定するプロセスです。

キー フレーズ抽出は、サイズの大きいドキュメントに最適です (分析できる最大サイズは 5,120 文字です)。

言語検出と同様に、REST インターフェイスを使用すると、分析用の 1 つ以上のドキュメントを送信できます。

{
  "documents": [
    {
      "id": "1",
      "language": "en",
      "text": "You must be the change you wish 
               to see in the world."
    },
    {
      "id": "2",
      "language": "en",
      "text": "The journey of a thousand miles 
               begins with a single step."
    }
  ]
}

応答には、各ドキュメントで検出されたキー フレーズの一覧が含まれています。

{
  "documents": [
   {
     "id": "1",
     "keyPhrases": [
       "change",
       "world"
     ],
     "warnings": []
   },
   {
     "id": "2",
     "keyPhrases": [
       "miles",
       "single step",
       "journey"
     ],
     "warnings": []
   }
  ],
  "errors": [],
  "modelVersion": "2020-04-01"
}