public abstract class AbstractBackTranslationWithTemporalDictionaryService extends AbstractLanguagePairService implements BackTranslationWithTemporalDictionaryService
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS
Constructor and Description |
---|
AbstractBackTranslationWithTemporalDictionaryService() |
Modifier and Type | Method and Description |
---|---|
BackTranslationResult |
backTranslate(String sourceLang,
String intermediateLang,
String source,
Translation[] temporalDict,
String dictTargetLang)
Run translation.
|
protected abstract BackTranslationResult |
doBackTranslation(Language sourceLang,
Language intermediateLang,
String source,
Translation[] temporalDictionary,
Language dictionaryTargetLang) |
getSupportedLanguagePairCollection, getSupportedLanguagePairs, setSupportedLanguagePairs
acquireSemaphore, checkStartupException, convertLanguagePairs, convertLanguages, doGetLastUpdate, getCurrentServiceContext, getDoDoubleSearch, getEliminateDuplicates, getInitParameter, getInitParameterBoolean, getInitParameterInt, getInitParameterLong, getInitParameters, getInitParameterString, getInitParameterUsingTransformer, getLastUpdate, getLogListener, getMaxResults, getMaxWaitMillisForExternalProcess, getRequestMimeHeaders, getServiceContext, getWorkDirectory, getWorkFile, log, parseDateMacro, processEnd, processEnd, processLap, processStart, releaseSemaphore, setCurrentServiceContext, setDoubleSearchResults, setEliminateDuplicates, setLogListener, setMaxResults, setMaxThreads, setMaxWaitMillisForExternalProcess, setMaxWaitMillisForThread, setMeasureProcessTime, setProcessTimeWarningThreasholdMillis, setStartupException
getComponentServiceFactory, getFile, getServiceName, setComponentServiceFactory, setServiceName
public AbstractBackTranslationWithTemporalDictionaryService()
public BackTranslationResult backTranslate(String sourceLang, String intermediateLang, String source, Translation[] temporalDict, String dictTargetLang) throws AccessLimitExceededException, InvalidParameterException, LanguagePairNotUniquelyDecidedException, NoAccessPermissionException, ProcessFailedException, NoValidEndpointsException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguagePairException
BackTranslationWithTemporalDictionaryService
backTranslate
in interface BackTranslationWithTemporalDictionaryService
sourceLang
- Translation source language (RFC3066 compliant)source
- String to be translatedtemporalDict
- Bilingual dictionary data used during translationdictTargetLang
- Target language of dictionary data(targetLang)AccessLimitExceededException
- Violated an access restrictionInvalidParameterException
- An invalid parameter was passedLanguagePairNotUniquelyDecidedException
- Multiple candidate language pairs existUnsupportedLanguagePairException
- An unsupported language pair was specifiedNoAccessPermissionException
- The user executing the call lacks execution privilegesProcessFailedException
- Translation process failedNoValidEndpointsException
- There is no valid endpointServerBusyException
- The server is loaded and cannot process it.ServiceNotActiveException
- The service is not activeServiceNotFoundException
- The specified service was not foundprotected abstract BackTranslationResult doBackTranslation(Language sourceLang, Language intermediateLang, String source, Translation[] temporalDictionary, Language dictionaryTargetLang) throws InvalidParameterException, ProcessFailedException