public class SnowballStemmer extends FeaturePathAnnotatorBase
UIMA wrapper for the Snowball stemmer. Annotation types to be stemmed can be configured by a
FeaturePath
.
If you use this component in a pipeline which uses stop word removal, make sure that it runs after the stop word removal step, so only words that are no stop words are stemmed.
FeaturePathAnnotatorBase
Modifier and Type | Field and Description |
---|---|
protected String |
language |
static Map<String,String> |
languages |
protected boolean |
lowerCase |
static String |
PARAM_LANGUAGE
Use this language instead of the document language to resolve the model.
|
static String |
PARAM_LOWER_CASE
Per default the stemmer runs in case-sensitive mode.
|
filterCondition, filterConditionOperator, filterConditionValue, filterFeaturePath, filterFeaturePathInfo, fp, PARAM_FILTER_CONDITION_OPERATOR, PARAM_FILTER_CONDITION_VALUE, PARAM_FILTER_FEATUREPATH, PARAM_PATHS, paths
Constructor and Description |
---|
SnowballStemmer() |
Modifier and Type | Method and Description |
---|---|
protected void |
generateAnnotations(org.apache.uima.jcas.JCas jcas)
Method to create annotations.
|
protected Set<String> |
getDefaultPaths() |
initialize, initializeFeaturePathInfoFrom, process
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String PARAM_LANGUAGE
protected String language
public static final String PARAM_LOWER_CASE
false (default) | true | |
---|---|---|
EDUCATIONAL | EDUCATIONAL | educ |
Educational | Educat | educ |
educational | educ | educ |
protected boolean lowerCase
protected Set<String> getDefaultPaths()
getDefaultPaths
in class FeaturePathAnnotatorBase
protected void generateAnnotations(org.apache.uima.jcas.JCas jcas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException, FeaturePathException
FeaturePathAnnotatorBase
generateAnnotations
in class FeaturePathAnnotatorBase
jcas
- the JCas.org.apache.uima.analysis_engine.AnalysisEngineProcessException
- if another error occurs.FeaturePathException
- if an error occurs during initialization of the FeaturePathInfo
objectCopyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.