Name:
interface
Value:
Amplify has re-imagined the way frontend developers build fullstack applications. Develop and deploy without the hassle.

Page updated May 2, 2024

Interpret sentiment

Note: Make sure to complete the getting started section first, where you will set up the IAM roles with the right policy actions

Working with the API

Analyze text to find key phrases, sentiment (positive, negative, neutral), or the syntax (pronouns, verbs, etc.). You can also find entities in the text such as names or places, or perform language detection.

import { Predictions } from '@aws-amplify/predictions';
const result = await Predictions.interpret({
text: {
source: {
text: textToInterpret,
},
type: 'ALL'
}
})