public class POSAnnotator
extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase
| Constructor and Description |
|---|
POSAnnotator() |
| Modifier and Type | Method and Description |
|---|---|
protected Sentence |
createUnitSentence(ArrayList<de.julielab.jcore.types.Token> tokenList,
org.apache.uima.jcas.JCas JCas)
Takes all info about meta data and generates the corresponding unit sequence represented by a Sentence object.
|
void |
initialize(org.apache.uima.UimaContext aContext)
Initialisiation of UIMA-JNET.
|
void |
process(org.apache.uima.jcas.JCas aJCas)
process current CAS.
|
void |
writeToCAS(Sentence unitSentence,
org.apache.uima.jcas.JCas aJCas,
ArrayList<de.julielab.jcore.types.Token> tokenList)
creates the respective uima annotations from JPOS's predictions.
|
getRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextpublic void initialize(org.apache.uima.UimaContext aContext)
throws org.apache.uima.resource.ResourceInitializationException
initialize in interface org.apache.uima.analysis_component.AnalysisComponentinitialize in class org.apache.uima.analysis_component.AnalysisComponent_ImplBaseorg.apache.uima.resource.ResourceInitializationExceptionpublic void process(org.apache.uima.jcas.JCas aJCas)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process in class org.apache.uima.analysis_component.JCasAnnotator_ImplBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionprotected Sentence createUnitSentence(ArrayList<de.julielab.jcore.types.Token> tokenList, org.apache.uima.jcas.JCas JCas)
tokenList - a list of Token objects of the current sentenceJCas - the CAS we are working onmetaList - a Arraylist of meta-info HashMaps which specify the meta information of the respective tokenpublic void writeToCAS(Sentence unitSentence, org.apache.uima.jcas.JCas aJCas, ArrayList<de.julielab.jcore.types.Token> tokenList) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
unitSentence - the current Sentence objectaJCas - the cas to write the annotation totokenList - org.apache.uima.analysis_engine.AnalysisEngineProcessExceptionCopyright © 2018 JULIE Lab, Germany. All Rights Reserved.