--- title: "固有表現認識" url: https://docs.catalyst.zoho.com/ja/sdk/java/v1/zia-services/text-analytics/named-entity-recognition/ description: "このページでは、Javaアプリケーションでサンプルコードスニペットを使用して固有表現認識機能を使用する方法について説明します。" last_updated: 2026-03-30T08:10:30Z service: Zia Services type: general related_links: - name: "Named Entity Recognition - API" url: /ja/api/code-reference/zia-services/text-analytics/named-entity-recognition/#NamedEntityRecognition --- # Named Entity Recognition [Zia Named Entity Recognition](https://docs.catalyst.zoho.com/ja/zia-services/help/text-analytics/key-concepts/#named-entity-recognition)は、Text Analyticsの一部であり、テキストコンテンツを処理してキーワードを抽出し、さまざまなカテゴリにグループ化します。例えば、テキスト内の単語が組織名、人名、または日付であることを判定し、適切なカテゴリに追加できます。NERで認識されるすべてのカテゴリの一覧は、[こちら](https://docs.catalyst.zoho.com/ja/zia-services/help/text-analytics/#NER)を参照してください。 レスポンスは、テキスト内で認識されたすべてのエンティティの配列と、それらが属するカテゴリを示すタグを返します。また、精度を示すために、各分類の信頼度スコアがパーセント値で含まれます。レスポンスには、開始インデックスと終了インデックスを通じてテキスト内のエンティティの位置も返されます。 以下に示すように、1回のリクエストで最大**1500文字**のテキストブロックを入力として渡すことができます。テキストは`getNERPrediction()`に渡されます。コードには、エンティティ、そのタグ、位置、および信頼度スコアを取得するステートメントが含まれています。 #### サンプルコードスニペット **Package Imports** ```java 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; ``` ```java 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(); //各エンティティの終了インデックスを取得する ```