AzureCognitiveServicesTranslationService class
Translator based on Azure Cognitive Services API Azure Cognitive Services API Documentation: https://docs.microsoft.com/en-us/azure/cognitive-services/translator/quickstart-translator?tabs=csharp
- Inheritance
-
- Object
- AbstractTranslationService
- AzureCognitiveServicesTranslationService
- Mixed-in types
Constructors
- AzureCognitiveServicesTranslationService({required String subscriptionKey, String? region, required Logger logger})
-
subscriptionKey- Azure Subscription Key, read mode here: https://docs.microsoft.com/en-us/azure/cognitive-services/authentication?tabs=powershellregion- Azure Subscription Region, read more here: https://docs.microsoft.com/en-us/azure/cognitive-services/authentication?tabs=powershell
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
translate(
String source, LanguageCode sourceLanguage, LanguageCode target) → Future< String> -
Translates given text to specified language
source- text which should be translatedsourceLanguage- the language in whichsourcewas giventarget- language to whichsourceshould be translatedoverride -
translateBulk(
List< String> sources, LanguageCode sourceLanguage, List<LanguageCode> targets) → Future<List< Translation> > -
Translates given texts to specified languages
sources- list of texts which should be translatedsourceLanguage- the language in whichsourceswere giventargets- list of languages to whichsourcesshould be translatedoverride -
translateBulkToSingleTarget(
List< String> sources, LanguageCode sourceLanguage, LanguageCode target) → Future<List< String> > -
Translates given texts to specified language
sources- list of text which should be translatedsourceLanguage- the language in whichsourceswere giventarget- language to whichsourcesshould be translatedoverride -
translateToTargetsList(
String source, LanguageCode sourceLanguage, List< LanguageCode> targets) → Future<Translation> -
Translates given text to specified languages
source- text which should be translatedsourceLanguage- the language in whichsourcewas giventargets- list of languages to whichsourceshould be translatedoverride
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited