public class SingleDocumentProcessorCtakes extends SingleDocumentProcessor
Modifier and Type | Field and Description |
---|---|
protected org.apache.uima.jcas.JCas |
jcas |
arrayOfArrayOfTokens, converter2
Constructor and Description |
---|
SingleDocumentProcessorCtakes() |
Modifier and Type | Method and Description |
---|---|
List<LineAndTokenPosition> |
calculateBeginAndEndOfConcept(ApiConcept problem) |
List<LineAndTokenPosition> |
calculateBeginAndEndOfConcept(int problemBegin,
int problemEnd)
delegate to converter to determine offset.
|
ArrayList<ArrayList<String>> |
construct2DTokenArray(org.apache.uima.jcas.JCas jcas) |
LineAndTokenPosition |
convertCharacterOffsetToLineToken(int characterOffset)
delegate to converter to determine offset.
|
org.apache.uima.jcas.JCas |
getJcas() |
void |
postprocess() |
protected void |
preExecutionTest() |
void |
preprocess() |
void |
setJcas(org.apache.uima.jcas.JCas jcas) |
addConcept, getAssertionTypeMap, getTokenArrays, processSingleDocument, setAssertionDecoderConfiguration, setContents, setConverter2
public org.apache.uima.jcas.JCas getJcas()
public void setJcas(org.apache.uima.jcas.JCas jcas)
protected void preExecutionTest()
preExecutionTest
in class SingleDocumentProcessor
public void preprocess()
preprocess
in class SingleDocumentProcessor
public void postprocess()
public ArrayList<ArrayList<String>> construct2DTokenArray(org.apache.uima.jcas.JCas jcas)
public LineAndTokenPosition convertCharacterOffsetToLineToken(int characterOffset)
convertCharacterOffsetToLineToken
in class SingleDocumentProcessor
public List<LineAndTokenPosition> calculateBeginAndEndOfConcept(ApiConcept problem)
calculateBeginAndEndOfConcept
in class SingleDocumentProcessor
public List<LineAndTokenPosition> calculateBeginAndEndOfConcept(int problemBegin, int problemEnd)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.