public abstract class AbstractNamedEntityTaggingService extends AbstractLanguageService implements NamedEntityTaggingService
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS
Constructor and Description |
---|
AbstractNamedEntityTaggingService()
Constructor that doesn't take parameter(s).
|
AbstractNamedEntityTaggingService(Collection<Language> supportedLanguages)
Constructor that takes the supported language as a parameter.
|
AbstractNamedEntityTaggingService(ServiceContext serviceContext,
Collection<Language> supportedLanguages)
Constructor that takes the service context and supported language as a parameter(s).
|
Modifier and Type | Method and Description |
---|---|
protected abstract Collection<NamedEntity> |
doTag(Language language,
String text) |
int |
getMaxSourceLength() |
void |
setMaxSourceLength(int maxSourceLength) |
NamedEntity[] |
tag(String language,
String text) |
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
getSupportedLanguages
public AbstractNamedEntityTaggingService()
public AbstractNamedEntityTaggingService(Collection<Language> supportedLanguages)
supportedLanguages
- Set of supported languagespublic AbstractNamedEntityTaggingService(ServiceContext serviceContext, Collection<Language> supportedLanguages)
serviceContext
- Service contextsupportedLanguages
- Set of supported languagespublic int getMaxSourceLength()
public void setMaxSourceLength(int maxSourceLength)
public NamedEntity[] tag(String language, String text) throws AccessLimitExceededException, InvalidParameterException, LanguageNotUniquelyDecidedException, NoAccessPermissionException, ProcessFailedException, NoValidEndpointsException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguageException
tag
in interface NamedEntityTaggingService
AccessLimitExceededException
InvalidParameterException
LanguageNotUniquelyDecidedException
NoAccessPermissionException
ProcessFailedException
NoValidEndpointsException
ServerBusyException
ServiceNotActiveException
ServiceNotFoundException
UnsupportedLanguageException
protected abstract Collection<NamedEntity> doTag(Language language, String text) throws InvalidParameterException, ProcessFailedException