お知らせ:

当社は、お客様により充実したサポート情報を迅速に提供するため、本ページのコンテンツは機械翻訳を用いて日本語に翻訳しています。正確かつ最新のサポート情報をご覧いただくには、本内容の英語版を参照してください。

Named Entity Recognition

Zia Named Entity Recognitionは、Text Analyticsの一部で、テキストコンテンツを処理してキーワードを抽出し、さまざまなカテゴリにグループ化します。たとえば、テキスト内の単語が組織名、人名、または日付であることを判定し、適切なカテゴリに追加します。NERが認識するすべてのカテゴリのリストについては、こちらを参照してください。

レスポンスは、テキスト内で認識されたすべてのエンティティの配列と、所属するカテゴリを示すタグを返します。また、各分類の信頼度スコアもパーセント値で含まれ、精度が示されます。レスポンスには、テキスト内のエンティティの位置を示す開始インデックスと終了インデックスも返されます。

以下に示すように、1回のリクエストで最大1500文字のテキストブロックを入力として渡すことができます。テキストはgetNERPrediction()に渡されます。

以下で使用されているziaリファレンスは、コンポーネントインスタンスページで定義されています。

copy
zia.getNERPrediction(['Zoho Corporation, is an Indian multinational technology company that makes web-based business tools. It is best known for Zoho Office Suite. The company was founded by Sridhar Vembu and Tony Thomas and has a presence in seven locations with its global headquarters in Chennai, India, and corporate headquarters in Pleasanton, California.']) 
//入力テキストを渡す
	.then((result) => console.log(result))
	.catch((error) => console.log(error.toString()));

受信するサンプルレスポンスを以下に示します。レスポンスはNode.jsの両方のバージョンで同じです。

Node js

copy
"ner": {
"general_entities": [
{
"start_index": 0,
"confidence_score": 98,
"end_index": 16,
"ner_tag": "Organization",
"token": "Zoho Corporation"
},
{
"start_index": 24,
"confidence_score": 99,
"end_index": 30,
"ner_tag": "Miscellaneous",
"token": "Indian"
},
{
"start_index": 122,
"confidence_score": 90,
"end_index": 139,
"ner_tag": "Miscellaneous",
"token": "Zoho Office Suite"
},
{
"start_index": 168,
"confidence_score": 99,
"end_index": 181,
"ner_tag": "Person",
"token": "Sridhar Vembu"
},
{
"start_index": 186,
"confidence_score": 96,
"end_index": 197,
"ner_tag": "Person",
"token": "Tony Thomas"
},
{
"start_index": 220,
"confidence_score": 100,
"end_index": 225,
"ner_tag": "Number",
"token": "seven"
},
{
"start_index": 268,
"confidence_score": 99,
"end_index": 275,
"ner_tag": "City",
"token": "Chennai"
},
{
"start_index": 277,
"confidence_score": 98,
"end_index": 282,
"ner_tag": "Country",
"token": "India"
},
{
"start_index": 314,
"confidence_score": 99,
"end_index": 324,
"ner_tag": "City",
"token": "Pleasanton"
},
{
"start_index": 326,
"confidence_score": 91,
"end_index": 336,
"ner_tag": "State",
"token": "California"
}
]
}

最終更新日 2026-03-30 13:40:30 +0530 IST

このページについて