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を実行することもできます。
リクエスト詳細
リクエストURL
{api-domain}/baas/v1/project/{project_id}/ml/text-analytics
リクエストヘッダー
Authorization: Zoho-oauthtoken {oauth_token}
content-type: application/json
オプションヘッダー
CATALYST-ORG: {org_id}
Environment: Development
スコープ
ZohoCatalyst.mlkit.READ
リクエストJSONプロパティ
レスポンス詳細
レスポンスには、各テキスト分析機能の結果が含まれます。詳細情報については、各機能のレスポンス詳細セクションを個別に参照してください。
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.]"
}’
{
"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"
}
]
}
}
]
}
Yes
No
Send your feedback to us