Writing
Carrier Comment Sentiment Analysis
Introduction
Introduction
Provides sentiment recognition capability to help you quickly judge the sentiment score of a carrier comment text.
API Capability
API Name English Name Request Method API URL
Carrier Sentiment Analysis sentiment_operation_analysis GET http://192.168.0.19:50001/nlp/sentiment_operation_analysis
Parameter Description
Request Parameters
Parameter Name (English) Required Data Type Example Description
token Yes string 340611b2014541c98ca14737f3892c79 User identifier
text Yes string I am quite satisfied with China Mobile’s network speed! Text to analyze for sentiment
Request Parameter Example:
{
"token": "340611b2014541c98ca14737f3892c79",
"text":"I am quite satisfied with China Mobile's network speed!"
}
Response Parameters (Success)
Parameter Name (English) Required Data Type Example Description
success Yes int 0 Return code: 0 success, 1 failure
message Yes string ok Return message
data Yes object
Returned data; meaningful when success is 0
sentiment-score Yes float 2.337 Sentiment score for the text
Response Parameters (Failure)
Parameter Name (English) Required Data Type Example Description
success Yes int 1 Return code: 0 success, 1 failure
message Yes string Input error Return message
Response Parameter Example
{
"success": 0,
"message": "ok",
"data": {
"sentiment_score": 2.337
}
}