public class EnsureTokensHaveLemmaAndPOS
extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
Token has a POS and a lemma, sets otherwise the POS
to a "null" string, resp. the lemma to the coveredText itself| Constructor and Description |
|---|
EnsureTokensHaveLemmaAndPOS() |
| Modifier and Type | Method and Description |
|---|---|
void |
process(org.apache.uima.jcas.JCas jcas) |
static void |
setLemma(Token token,
org.apache.uima.jcas.JCas jcas,
String lemmaStr)
Convenience method to set POS tag
|
static void |
setPosTags(Token token,
org.apache.uima.jcas.JCas jcas,
String... posTags)
Convenience method to set POS tag
|
getLogger, initializegetRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextpublic void process(org.apache.uima.jcas.JCas jcas)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process in class org.apache.uima.analysis_component.JCasAnnotator_ImplBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionpublic static void setPosTags(Token token, org.apache.uima.jcas.JCas jcas, String... posTags)
Copyright © 2015 Bluebrain Project. All rights reserved.