I'm doing text processing with Google Cloud Language and sometimes the returned lemmas don't match my expectations. For example:
- The lemma of "determining" is "determine"
- The lemma of the adjective "determined" is "determined"
I'd expect them both to have the same lemma.
Here are the full results returned by Google for the two words:
{
"text": {
"content": "determining",
"beginOffset": -1
},
"partOfSpeech": {
"tag": "VERB",
"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": "ROOT"
},
"lemma": "determine"
}
{
"text": {
"content": "determined",
"beginOffset": -1
},
"partOfSpeech": {
"tag": "ADJ",
"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": "PAST",
"voice": "VOICE_UNKNOWN"
},
"dependencyEdge": {
"headTokenIndex": 0,
"label": "ACOMP"
},
"lemma": "determined"
}