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, 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 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 ParallelTextWithExternalMetadataService
AccessLimitExceededException
InvalidParameterException
LanguagePairNotUniquelyDecidedException
NoAccessPermissionException
NoValidEndpointsException
ProcessFailedException
ServerBusyException
ServiceNotActiveException
ServiceNotFoundException
UnsupportedLanguagePairException
protected abstract Collection<ParallelTextWithId> doSearchParallelTextsFromCandidates(Language sourceLang, Language targetLang, String text, MatchingMethod matchingMethod, String[] candidateIds) throws InvalidParameterException, ProcessFailedException
protected void setSupportedMatchingMethods(Set<MatchingMethod> supportedMatchingMethods)