public class LancasterStemmer extends FeaturePathAnnotatorBase
| Modifier and Type | Field and Description |
|---|---|
protected String |
language |
static String |
PARAM_LANGUAGE
Specifies the language supported by the stemming model.
|
static String |
PARAM_MODEL_LOCATION
Specifies an URL that should resolve to a location from where to load custom rules.
|
static String |
PARAM_STRIP_PREFIXES
True if the stemmer will strip prefix such as kilo, micro, milli, intra, ultra, mega, nano,
pico, pseudo.
|
filterCondition, filterConditionOperator, filterConditionValue, filterFeaturePath, filterFeaturePathInfo, fp, PARAM_FILTER_CONDITION_OPERATOR, PARAM_FILTER_CONDITION_VALUE, PARAM_FILTER_FEATUREPATH, PARAM_PATHS, paths| Constructor and Description |
|---|
LancasterStemmer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
generateAnnotations(org.apache.uima.jcas.JCas jcas)
Method to create annotations.
|
protected Set<String> |
getDefaultPaths() |
void |
initialize(org.apache.uima.UimaContext aContext) |
initializeFeaturePathInfoFrom, processgetRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextpublic static final String PARAM_STRIP_PREFIXES
public static final String PARAM_MODEL_LOCATION
classpath: the location is interpreted as a classpath location,
e.g. "classpath:my/path/to/the/rules". Otherwise it is tried as an URL, file and at last UIMA
resource.ResourceUtils,
Constant Field Valuespublic static final String PARAM_LANGUAGE
protected String language
protected Set<String> getDefaultPaths()
getDefaultPaths in class FeaturePathAnnotatorBasepublic void initialize(org.apache.uima.UimaContext aContext)
throws org.apache.uima.resource.ResourceInitializationException
initialize in interface org.apache.uima.analysis_component.AnalysisComponentinitialize in class FeaturePathAnnotatorBaseorg.apache.uima.resource.ResourceInitializationExceptionprotected void generateAnnotations(org.apache.uima.jcas.JCas jcas)
throws FeaturePathException,
org.apache.uima.analysis_engine.AnalysisEngineProcessException
FeaturePathAnnotatorBasegenerateAnnotations in class FeaturePathAnnotatorBasejcas - the JCas.FeaturePathException - if an error occurs during initialization of the FeaturePathInfo objectorg.apache.uima.analysis_engine.AnalysisEngineProcessException - if another error occurs.Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.