public interface TranslationSelectionService
| Modifier and Type | Method and Description |
|---|---|
SelectionResult |
select(String sourceLang,
String targetLang,
String source)
Run translation.
|
SelectionResult select(String sourceLang, String targetLang, String source) throws ProcessFailedException, LanguagePairNotUniquelyDecidedException, UnsupportedLanguagePairException, InvalidParameterException
sourceLang - Translation source language (RFC3066 compliant)targetLang - Target language of the translation (RFC3066 compliant)source - String to be translatedProcessFailedException - Translation process failedLanguagePairNotUniquelyDecidedException - Multiple candidate language pairs existUnsupportedLanguagePairException - An unsupported language pair was specifiedInvalidParameterException - An invalid parameter was passed