public abstract class AbstractGetLongestMatchingTermService extends AbstractLanguageService implements GetLongestMatchingTermService
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS
Constructor and Description |
---|
AbstractGetLongestMatchingTermService() |
Modifier and Type | Method and Description |
---|---|
protected abstract Collection<TranslationWithPosition> |
doGetLongestMatchingTerm(Language headLang,
Morpheme[] morphemes,
int startIndex,
Translation[] translations) |
TranslationWithPosition[] |
getLongestMatchingTerm(String headLang,
Morpheme[] morphemes,
int startIndex,
Translation[] translations) |
getSupportedLanguageCollection, getSupportedLanguagePairCollection, getSupportedLanguages, setSupportedLanguageCollection, setSupportedLanguages
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLastUpdate
public AbstractGetLongestMatchingTermService()
public TranslationWithPosition[] getLongestMatchingTerm(String headLang, Morpheme[] morphemes, int startIndex, Translation[] translations) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguageException
getLongestMatchingTerm
in interface GetLongestMatchingTermService
AccessLimitExceededException
InvalidParameterException
NoAccessPermissionException
NoValidEndpointsException
ProcessFailedException
ServerBusyException
ServiceNotActiveException
ServiceNotFoundException
UnsupportedLanguageException
protected abstract Collection<TranslationWithPosition> doGetLongestMatchingTerm(Language headLang, Morpheme[] morphemes, int startIndex, Translation[] translations) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguageException