This Choreo provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call. The documentation for this Gmail resource can be found here.
Here is an example input set:
APIKey: {YOUR API KEY}
Content: Enjoy your vacation!
The following is a sample of the JSON information returned by this Choreo:
{
"sentences": [
{
"text": {
"content": "Enjoy your vacation!",
"beginOffset": 0
},
"sentiment": {
"magnitude": 0.8,
"score": 0.8
}
}
],
"tokens": [
{
"text": {
"content": "Enjoy",
"beginOffset": 0
},
"partOfSpeech": {
"tag": "VERB",
"aspect": "ASPECT_UNKNOWN",
"case": "CASE_UNKNOWN",
"form": "FORM_UNKNOWN",
"gender": "GENDER_UNKNOWN",
"mood": "IMPERATIVE",
"number": "NUMBER_UNKNOWN",
"person": "PERSON_UNKNOWN",
"proper": "PROPER_UNKNOWN",
"reciprocity": "RECIPROCITY_UNKNOWN",
"tense": "TENSE_UNKNOWN",
"voice": "VOICE_UNKNOWN"
},
"dependencyEdge": {
"headTokenIndex": 0,
"label": "ROOT"
},
"lemma": "Enjoy"
},
{
"text": {
"content": "your",
"beginOffset": 6
},
"partOfSpeech": {
"tag": "PRON",
"aspect": "ASPECT_UNKNOWN",
"case": "GENITIVE",
"form": "FORM_UNKNOWN",
"gender": "GENDER_UNKNOWN",
"mood": "MOOD_UNKNOWN",
"number": "SINGULAR",
"person": "SECOND",
"proper": "PROPER_UNKNOWN",
"reciprocity": "RECIPROCITY_UNKNOWN",
"tense": "TENSE_UNKNOWN",
"voice": "VOICE_UNKNOWN"
},
"dependencyEdge": {
"headTokenIndex": 2,
"label": "POSS"
},
"lemma": "your"
},
{
"text": {
"content": "vacation",
"beginOffset": 11
},
"partOfSpeech": {
"tag": "NOUN",
"aspect": "ASPECT_UNKNOWN",
"case": "CASE_UNKNOWN",
"form": "FORM_UNKNOWN",
"gender": "GENDER_UNKNOWN",
"mood": "MOOD_UNKNOWN",
"number": "SINGULAR",
"person": "PERSON_UNKNOWN",
"proper": "PROPER_UNKNOWN",
"reciprocity": "RECIPROCITY_UNKNOWN",
"tense": "TENSE_UNKNOWN",
"voice": "VOICE_UNKNOWN"
},
"dependencyEdge": {
"headTokenIndex": 0,
"label": "DOBJ"
},
"lemma": "vacation"
},
{
"text": {
"content": "!",
"beginOffset": 19
},
"partOfSpeech": {
"tag": "PUNCT",
"aspect": "ASPECT_UNKNOWN",
"case": "CASE_UNKNOWN",
"form": "FORM_UNKNOWN",
"gender": "GENDER_UNKNOWN",
"mood": "MOOD_UNKNOWN",
"number": "NUMBER_UNKNOWN",
"person": "PERSON_UNKNOWN",
"proper": "PROPER_UNKNOWN",
"reciprocity": "RECIPROCITY_UNKNOWN",
"tense": "TENSE_UNKNOWN",
"voice": "VOICE_UNKNOWN"
},
"dependencyEdge": {
"headTokenIndex": 0,
"label": "P"
},
"lemma": "!"
}
],
"entities": [
{
"name": "vacation",
"type": "EVENT",
"metadata": {
},
"salience": 1,
"mentions": [
{
"text": {
"content": "vacation",
"beginOffset": 11
},
"type": "COMMON"
}
]
}
],
"documentSentiment": {
"magnitude": 0.8,
"score": 0.8
},
"language": "en"
}