public class StopWordRemover
extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_MODEL_ENCODING
The character encoding used by the model.
|
static String |
PARAM_MODEL_LOCATION
A list of URLs from which to load the stop word lists.
|
static String |
PARAM_PATHS
Feature paths for annotations that should be matched/removed.
|
static String |
PARAM_STOP_WORD_TYPE
Anything annotated with this type will be removed even if it does not match any word in the
lists.
|
Constructor and Description |
---|
StopWordRemover() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(org.apache.uima.UimaContext context) |
void |
process(org.apache.uima.jcas.JCas jcas) |
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String PARAM_MODEL_LOCATION
public static final String PARAM_MODEL_ENCODING
public static final String PARAM_PATHS
StopWord.class.getName() Token.class.getName() Lemma.class.getName()+"/value"
public static final String PARAM_STOP_WORD_TYPE
public void initialize(org.apache.uima.UimaContext context) throws org.apache.uima.resource.ResourceInitializationException
initialize
in interface org.apache.uima.analysis_component.AnalysisComponent
initialize
in class org.apache.uima.fit.component.JCasAnnotator_ImplBase
org.apache.uima.resource.ResourceInitializationException
public void process(org.apache.uima.jcas.JCas jcas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process
in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.