public interface AsyncTranslationWithTemporalDictionaryService
Modifier and Type | Method and Description |
---|---|
AsyncTranslationResult |
getCurrentResult(String token) |
String |
startTranslation(String sourceLang,
String targetLang,
String[] sources,
Translation[] temporalDict,
String dictTargetLang)
Run asynchronous translation.
|
void |
terminate(String token) |
String startTranslation(String sourceLang, String targetLang, String[] sources, Translation[] temporalDict, String dictTargetLang) throws InvalidParameterException, ProcessFailedException
sourceLang
- Translation source language (RFC3066 compliant)targetLang
- Target language of the translation (RFC3066 compliant)array
- of source String to be translatedtemporalDict
- Bilingual dictionary data used during translationdictTargetLang
- Target language of dictionary data(targetLang)InvalidParameterException
- An invalid parameter was passedProcessFailedException
- Translation process failedAsyncTranslationResult getCurrentResult(String token) throws InvalidParameterException, ProcessFailedException
token
- InvalidParameterException
- An invalid parameter was passedProcessFailedException
- Translation process failedvoid terminate(String token) throws InvalidParameterException, ProcessFailedException
token
- InvalidParameterException
- An invalid parameter was passedProcessFailedException
- Translation process failed