Text Analytics
Text Analytics as a whole includes a combination of the following three features: Sentiment Analysis, Named Entity Recognition, and Keyword Extraction. You can perform all three actions on a specific block of text, and obtain the tone of the text, the categorizations of the entities recognized from it, and key words and phrases that provide a gist of the text.
Execute All Text Analytics
Description
You can use this API to perform Sentiment Analysis, Named Entity Recognition, and Keyword Extraction on a block of text of upto 1500 characters. You can pass the text in the JSON body of the request, as shown in the sample request.
You can also pass optional keywords to perform Sentiment Analysis on the sentences containing only those keywords.
Request Details
Request URL
{api-domain}/baas/v1/project/{project_id}/ml/text-analytics
Request Headers
Authorization: Zoho-oauthtoken {oauth_token}
content-type: application/json
Optional Headers
CATALYST-ORG: {org_id}
Environment: Development
Scope
ZohoCatalyst.mlkit.READ
Request JSON Properties
Response Details
The response contains the results of each of the text analytics feature. Refer to the response details section of each feature individually for detailed information.
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