public abstract class AbstractDependencyParserService extends AbstractLanguageService implements DependencyParserService
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS| Constructor and Description |
|---|
AbstractDependencyParserService()
Constructor that doesn't take parameter(s).
|
AbstractDependencyParserService(Collection<Language> supportedLanguages)
Constructor that takes the supported language as a parameter.
|
AbstractDependencyParserService(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,
String sentence)
Executes dependency analysis.
|
int |
getMaxSourceLength() |
Chunk[] |
parseDependency(String language,
String sentence)
Analyzes the dependency relationship.
|
void |
setMaxSourceLength(int maxSourceLength) |
getSupportedLanguageCollection, getSupportedLanguagePairCollection, getSupportedLanguages, setSupportedLanguageCollection, setSupportedLanguagesacquireSemaphore, 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 AbstractDependencyParserService()
public AbstractDependencyParserService(Collection<Language> supportedLanguages)
supportedLanguages - Set of supported languagespublic AbstractDependencyParserService(ServiceContext serviceContext, Collection<Language> supportedLanguages)
serviceContext - Service contextsupportedLanguages - Set of supported languagespublic int getMaxSourceLength()
public void setMaxSourceLength(int maxSourceLength)
public Chunk[] parseDependency(String language, String sentence) throws AccessLimitExceededException, InvalidParameterException, LanguageNotUniquelyDecidedException, NoAccessPermissionException, ProcessFailedException, NoValidEndpointsException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguageException
DependencyParserServiceparseDependency in interface DependencyParserServicelanguage - Language of the input textsentence - Input sentenceAccessLimitExceededException - 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, String sentence) throws InvalidParameterException, ProcessFailedException
language - Languagesentence - Sentence to analyzeInvalidParameterException - An invalid parameter was passedProcessFailedException - Process failed