public abstract class AbstractMorphemesDependencyParserService extends AbstractLanguageService implements MorphemesDependencyParserService
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS
Constructor and Description |
---|
AbstractMorphemesDependencyParserService()
Constructor that doesn't take parameter(s).
|
AbstractMorphemesDependencyParserService(Collection<Language> supportedLanguages)
Constructor that takes the supported language as a parameter.
|
AbstractMorphemesDependencyParserService(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<Chunk> |
doParseDependency(Language language,
Morpheme[] morphs) |
int |
getMaxSourceCount() |
Chunk[] |
parseDependency(String language,
Morpheme[] morphs)
Analyzes the dependency relationship of morpheme array.
|
void |
setMaxSourceCount(int maxSourceCount) |
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
public AbstractMorphemesDependencyParserService()
public AbstractMorphemesDependencyParserService(Collection<Language> supportedLanguages)
supportedLanguages
- Set of supported languagespublic AbstractMorphemesDependencyParserService(ServiceContext serviceContext, Collection<Language> supportedLanguages)
serviceContext
- Service contextsupportedLanguages
- Set of supported languagespublic int getMaxSourceCount()
public void setMaxSourceCount(int maxSourceCount)
public Chunk[] parseDependency(String language, Morpheme[] morphs) throws AccessLimitExceededException, InvalidParameterException, LanguageNotUniquelyDecidedException, NoAccessPermissionException, ProcessFailedException, NoValidEndpointsException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguageException
MorphemesDependencyParserService
parseDependency
in interface MorphemesDependencyParserService
language
- Language of the input textAccessLimitExceededException
- Exceeded an access restrictionInvalidParameterException
- An invalid parameter was passed.LanguageNotUniquelyDecidedException
- Multiple searchable languages exist, and one is not singly determined.UnsupportedLanguageException
- An unsupported language was specified.NoAccessPermissionException
- The user executing the call lacks execution privilegesProcessFailedException
- No valid endpoint exists.NoValidEndpointsException
- The process failed.ServerBusyException
- Cannot complete the process as the server is in a busy state.ServiceNotActiveException
- The service is not active.ServiceNotFoundException
- The requested service was not found.protected abstract Collection<Chunk> doParseDependency(Language language, Morpheme[] morphs) throws InvalidParameterException, ProcessFailedException