Detect sentiments over pre-deployed model.
POST {{baseUrl}}/actions/detectLanguageSentiments
The API extracts aspect-based in text records.
For aspect-based sentiment analysis, a set of aspects and their respective sentiment is returned.
For sentiment analysis, confidence scores are provided for each of the classes (positive, negative, neutral).
Learn more about sentiment analysis here.
Limitations: - A record may be up to 1000 characters long.
Request Body
{"text"=>"OCI recently added new services to existing compliance program including SOC, HIPAA, and ISO to enable our customers to solve their use cases. We also released new white papers and guidance documents related to Object Storage, the Australian Prudential Regulation Authority (APRA), and the Central Bank of Brazil. These resources help regulated customers better understand how OCI supports their regional and industry-specific compliance requirements. Not only are we expanding our number of compliance offerings and regulatory alignments, we continue to add regions and services at a faster clip."}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | string | The client request ID for tracing. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"aspects":[{"length":-79030101,"offset":24066023,"scores":{"proident_c_b":59400680.13661498},"sentiment":"velit ea culpa aliquip","text":"in anim fugiat consequat"},{"length":28784794,"offset":493552,"scores":{"est0a4":-89439462.91099593,"mollit6ec":61078829.60812533},"sentiment":"nisi","text":"ipsum labore"}]}