お知らせ:

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

Named Entity Recognition

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

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

以下に示すように、1回のリクエストで最大1500文字のテキストブロックを入力として渡すことができます。テキストはgetNERPrediction()に渡されます。コードには、エンティティ、そのタグ、位置、および信頼度スコアを取得するステートメントが含まれています。

サンプルコードスニペット


Package Imports
copy
import org.json.simple.JSONArray; 
import com.zc.component.ml.ZCML; 
import com.zc.component.ml.ZCNERData; 
import com.zc.component.ml.ZCNERDetails;
import java.io.File;
copy
JSONArray textArray = new JSONArray();
textArray.add("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.");
//処理する入力テキスト 
List listOfNERData = ZCML.getInstance().getNERPrediction(textArray); 
//入力テキストを渡す
List nerDetails = listOfNERData.get(0).getNERList(); 
String token = nerDetails.get(0).getToken(); 
//エンティティを認識する 
String tag = nerDetails.get(0).getNERTag(); 
//各エンティティのカテゴリを取得する 
double confidenceScore = nerDetails.get(0).getConfidenceScore(); 
//各分類の信頼度スコアを取得する 
int startIndex = nerDetails.get(0).getStartIndex(); 
//各エンティティの開始インデックスを取得する 
int endIndex = nerDetails.get(0).getEndIndex(); 
//各エンティティの終了インデックスを取得する

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

このページについて