Loading...

お知らせ:

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

Text Analytics

Text Analyticsは、以下の3つの機能の組み合わせで構成されています: Sentiment Analysis、Named Entity Recognition、Keyword Extraction。特定のテキストブロックに対して3つのアクションすべてを実行し、テキストのトーン、認識されたエンティティの分類、テキストの要旨を提供するキーワードとキーフレーズを取得できます。

全Text Analyticsの実行

説明

このAPIを使用して、最大1500文字のテキストブロックに対してSentiment Analysis、Named Entity Recognition、Keyword Extractionを実行できます。サンプルリクエストに示すように、リクエストのJSONボディにテキストを渡すことができます。

また、オプションのキーワードを渡して、それらのキーワードを含む文に対してのみSentiment Analysisを実行することもできます。

注意: 各機能の詳細情報については、それぞれのAPIページを参照してください。

リクエスト詳細

リクエストURL

POST

{api-domain}/baas/v1/project/{project_id}/ml/text-analytics

copy

api-domain
URL
Catalyst APIにアクセスするためのDC固有のドメイン

project_id
Numerical
プロジェクトの一意のID

リクエストヘッダー

Authorization: Zoho-oauthtoken {oauth_token}
content-type: application/json

オプションヘッダー

CATALYST-ORG: {org_id}

Environment: Development

スコープ

ZohoCatalyst.mlkit.READ

リクエストJSONプロパティ

document string array
mandatory
Sentiment Analysis、Named Entity Recognition、Keyword Extractionのために処理するテキスト
keywords string array
optional
これらのキーワードを含む文に対してのみSentiment Analysisを実行するため

レスポンス詳細

レスポンスには、各テキスト分析機能の結果が含まれます。詳細情報については、各機能のレスポンス詳細セクションを個別に参照してください。

リクエスト例
copy

curl -X POST
https://api.catalyst.zoho.com/baas/v1/project/4000000006007/ml/text-analytics
-H “Authorization: Zoho-oauthtoken 1000.910*************************16.2f*************************57”
-H “Content-Type: application/json”
-d ‘{ “document”:"[Zoho Corporation is an Indian software development company. The focus of Zoho Corporation lies in web-based business tools and information technology.]" }’

レスポンス例
copy
  {
  "status":"success",
  "data":[
  {
  "keyword_extractor":{
  "keywords":[
  "focus"
  ],
  "keyphrases":[
  "Indian software development company",
  "Zoho Corporation",
  "web - based business tools",
  "information technology"
  ]
  },
  "sentiment_prediction":[
  {
  "document_sentiment":"Neutral",
  "sentence_analytics":[
  {
  "sentence":"Zoho Corporation is an Indian software development company.",
  "sentiment":"Neutral",
  "confidence_scores":{
  "negative":0.0,
  "neutral":1.0,
  "positive":0.0
  }
  },
  {
  "sentence":"The focus of Zoho Corporation lies in web-based business tools and information technology.",
  "sentiment":"Neutral",
  "confidence_scores":{
  "negative":0.0,
  "neutral":1.0,
  "positive":0.0
  }
  }
  ],
  "overall_score":1.0
  }
  ],
  "ner":{
  "general_entities":[
  {
  "start_index":0,
  "confidence_score":99,
  "end_index":16,
  "ner_tag":"Organization",
  "token":"Zoho Corporation"
  },
  {
  "start_index":23,
  "confidence_score":99,
  "end_index":29,
  "ner_tag":"Miscellaneous",
  "token":"Indian"
  },
  {
  "start_index":73,
  "confidence_score":99,
  "end_index":89,
  "ner_tag":"Organization",
  "token":"Zoho Corporation"
  }
  ]
  }
  }
  ]
  }
View more