public abstract class AbstractParallelTextWithExternalMetadataService extends AbstractLanguagePairService implements ParallelTextWithExternalMetadataService
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS| Constructor and Description |
|---|
AbstractParallelTextWithExternalMetadataService() |
AbstractParallelTextWithExternalMetadataService(Collection<LanguagePair> supportedPairs) |
AbstractParallelTextWithExternalMetadataService(ServiceContext serviceContext,
Collection<LanguagePair> supportedPairs) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Collection<ParallelTextWithId> |
doSearchParallelTextsFromCandidates(Language sourceLang,
Language targetLang,
String text,
MatchingMethod matchingMethod,
String[] candidateIds) |
ParallelTextWithId[] |
searchParallelTextsFromCandidates(String sourceLang,
String targetLang,
String text,
String matchingMethod,
String[] candidateIds) |
protected void |
setSupportedMatchingMethods(Set<MatchingMethod> supportedMatchingMethods) |
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 AbstractParallelTextWithExternalMetadataService()
public AbstractParallelTextWithExternalMetadataService(Collection<LanguagePair> supportedPairs)
public AbstractParallelTextWithExternalMetadataService(ServiceContext serviceContext, Collection<LanguagePair> supportedPairs)
public ParallelTextWithId[] searchParallelTextsFromCandidates(String sourceLang, String targetLang, String text, String matchingMethod, String[] candidateIds) throws AccessLimitExceededException, InvalidParameterException, LanguagePairNotUniquelyDecidedException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguagePairException
searchParallelTextsFromCandidates in interface ParallelTextWithExternalMetadataServiceAccessLimitExceededExceptionInvalidParameterExceptionLanguagePairNotUniquelyDecidedExceptionNoAccessPermissionExceptionNoValidEndpointsExceptionProcessFailedExceptionServerBusyExceptionServiceNotActiveExceptionServiceNotFoundExceptionUnsupportedLanguagePairExceptionprotected abstract Collection<ParallelTextWithId> doSearchParallelTextsFromCandidates(Language sourceLang, Language targetLang, String text, MatchingMethod matchingMethod, String[] candidateIds) throws InvalidParameterException, ProcessFailedException
protected void setSupportedMatchingMethods(Set<MatchingMethod> supportedMatchingMethods)