de.unihd.dbs.uima.annotator.treetagger
public class TreeTaggerWrapper extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PARAM_ANNOTATE_PARTOFSPEECH |
static java.lang.String |
PARAM_ANNOTATE_SENTENCES |
static java.lang.String |
PARAM_ANNOTATE_TOKENS |
static java.lang.String |
PARAM_IMPROVE_GERMAN_SENTENCES |
static java.lang.String |
PARAM_LANGUAGE |
Constructor and Description |
---|
TreeTaggerWrapper() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(Language language,
java.lang.String treeTaggerHome,
java.lang.Boolean annotateTokens,
java.lang.Boolean annotateSentences,
java.lang.Boolean annotatePartOfSpeech,
java.lang.Boolean improveGermanSentences)
secondary initialize() to use wrapper outside of a uima pipeline
|
void |
initialize(org.apache.uima.UimaContext aContext)
initialization method where we fill configuration values and check some prerequisites
|
void |
process(org.apache.uima.jcas.JCas jcas)
Method that gets called to process the documents' cas objects
|
void |
setHome(java.lang.String home) |
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final java.lang.String PARAM_LANGUAGE
public static final java.lang.String PARAM_ANNOTATE_TOKENS
public static final java.lang.String PARAM_ANNOTATE_SENTENCES
public static final java.lang.String PARAM_ANNOTATE_PARTOFSPEECH
public static final java.lang.String PARAM_IMPROVE_GERMAN_SENTENCES
public void initialize(Language language, java.lang.String treeTaggerHome, java.lang.Boolean annotateTokens, java.lang.Boolean annotateSentences, java.lang.Boolean annotatePartOfSpeech, java.lang.Boolean improveGermanSentences)
language
- treeTaggerHome
- annotateTokens
- annotateSentences
- annotatePartOfSpeech
- improveGermanSentences
- public void initialize(org.apache.uima.UimaContext aContext)
initialize
in interface org.apache.uima.analysis_component.AnalysisComponent
initialize
in class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
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
public void setHome(java.lang.String home)