public abstract class AbstractBackTranslationService extends AbstractLanguagePairService implements BackTranslationService
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS| コンストラクタと説明 |
|---|
AbstractBackTranslationService()
Constructor.
|
AbstractBackTranslationService(Collection<LanguagePair> supportedPairs)
Constructor.
|
AbstractBackTranslationService(ServiceContext serviceContext,
Collection<LanguagePair> supportedPairs)
Constructor.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
BackTranslationResult |
backTranslate(String sourceLang,
String intermediateLang,
String source) |
protected abstract BackTranslationResult |
doBackTranslation(Language sourceLang,
Language intermediateLang,
String source)
Template method supporting backTranstlate.
|
getSupportedLanguagePairCollection, getSupportedLanguagePairs, setSupportedLanguagePairsacquireSemaphore, 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, setStartupExceptiongetComponentServiceFactory, getFile, getServiceName, setComponentServiceFactory, setServiceNamepublic AbstractBackTranslationService()
public AbstractBackTranslationService(Collection<LanguagePair> supportedPairs)
supportedPairs - Supported language pairspublic AbstractBackTranslationService(ServiceContext serviceContext, Collection<LanguagePair> supportedPairs)
serviceContext - Service contextsupportedPairs - Supported language pairspublic BackTranslationResult backTranslate(String sourceLang, String intermediateLang, String source) throws AccessLimitExceededException, InvalidParameterException, LanguagePairNotUniquelyDecidedException, NoAccessPermissionException, NoValidEndpointsException, ServiceNotActiveException, ProcessFailedException, ServerBusyException, ServiceNotFoundException, UnsupportedLanguagePairException
backTranslate インタフェース内 BackTranslationServiceAccessLimitExceededExceptionInvalidParameterExceptionLanguagePairNotUniquelyDecidedExceptionNoAccessPermissionExceptionNoValidEndpointsExceptionServiceNotActiveExceptionProcessFailedExceptionServerBusyExceptionServiceNotFoundExceptionUnsupportedLanguagePairExceptionprotected abstract BackTranslationResult doBackTranslation(Language sourceLang, Language intermediateLang, String source) throws InvalidParameterException, ProcessFailedException
sourceLang - Translation source languageintermediateLang - Translation intermediate languagesource - String to be translatedInvalidParameterException - An invalid parameter was passedProcessFailedException - Process failedCopyright © 2021. All rights reserved.