Translator Text API 3.0 dictionary lookup should support posTag as search criteria
I'm using Microsoft's Translator Text API 3.0 dictionary lookup.
The lookup of certain words is not correct because there seems to be no way to use posTag (ADJ, VERB, NOUN, ...) as search criteria.
Here is an example:
'https://api.cognitive.microsofttranslator.com/dictionary/lookup?api-version=3.0&from=de&to=en'
with reqest Body: "[{"Text":"Arm","posTag":"NOUN"}]"
This lookup retrieves only adjectives, and returns "poor" instead of "arm".
posTag will not be taken into account.
{{
"normalizedSource": "arm",
"displaySource": "arm",
"translations": [
{
"normalizedTarget": "poor",
"displayTarget": "poor",
"posTag": "ADJ",
"confidence": 1.0,
"prefixWord": "",
"backTranslations": [
{
"normalizedText": "arm",
"displayText": "arm",
"numExamples": 1,
"frequencyCount": 9769
}
]
}
]
}}
