public interface MicrosoftMTAPI
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseURL()
Gets the base URL in use, such as https://api.cognitive.microsofttranslator.com.
|
List<net.sf.okapi.connectors.microsoft.TranslationResponse> |
getTranslations(String query,
String srcLang,
String trgLang,
int maxHits,
int threshold)
Call the getTranslations() API method.
|
List<List<net.sf.okapi.connectors.microsoft.TranslationResponse>> |
getTranslationsArray(net.sf.okapi.connectors.microsoft.GetTranslationsArrayRequest request,
String srcLang,
String trgLang,
int maxHits,
int threshold)
Call the getTranslationsArray() API method.
|
int |
maxCharCount() |
int |
maxTextCount() |
List<net.sf.okapi.connectors.microsoft.TranslationResponse> getTranslations(String query, String srcLang, String trgLang, int maxHits, int threshold)
List<List<net.sf.okapi.connectors.microsoft.TranslationResponse>> getTranslationsArray(net.sf.okapi.connectors.microsoft.GetTranslationsArrayRequest request, String srcLang, String trgLang, int maxHits, int threshold)
String getBaseURL()
int maxCharCount()
getTranslationsArray(GetTranslationsArrayRequest, String, String, int, int)int maxTextCount()
getTranslationsArray(GetTranslationsArrayRequest, String, String, int, int)Copyright © 2021. All rights reserved.