Microsoft.CognitiveServices Translator results empty

Lee Tzilantonis 0 Reputation points
2024-05-28T11:09:19.3633333+00:00

I am trying to use the translator to translate mainly from english into 10-15 other languages. The text almost always is 1-3 words long with minimal context on their use and the API will about 10% of the time have empty strings in some of the resulting languages, which currently causes my services to fail. So far i have gotten empty text for Dutch, Portuguese and Japanese. Is there a way to prevent empty translation responses or get a 'best guess' translation if it fails?

Azure Translator
Azure Translator
An Azure service to easily conduct machine translation with a simple REST API call.
361 questions
{count} votes