de.unihd.dbs.uima.annotator.jvntextprowrapper
public class JVnTextProWrapper 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_POSMODEL_PATH |
static java.lang.String |
PARAM_SENTSEGMODEL_PATH |
static java.lang.String |
PARAM_WORDSEGMODEL_PATH |
Constructor and Description |
---|
JVnTextProWrapper() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(org.apache.uima.UimaContext aContext)
initialization method where we fill configuration values and check some prerequisites
|
java.util.List<jvntextpro.data.Sentence> |
jvnTagging(java.lang.String instr)
Taken from the JVnTextPro package and adapted to not output a string
|
void |
process(org.apache.uima.jcas.JCas jcas)
Method that gets called to process the documents' cas objects
|
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final java.lang.String PARAM_SENTSEGMODEL_PATH
public static final java.lang.String PARAM_WORDSEGMODEL_PATH
public static final java.lang.String PARAM_POSMODEL_PATH
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 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 java.util.List<jvntextpro.data.Sentence> jvnTagging(java.lang.String instr)
instr
- input string to be tagged