// LineTokenToCharacterOffsetConverter converter =
// new LineTokenToCharacterOffsetConverter(contents);
// SingleDocumentProcessor p = new SingleDocumentProcessor();
SingleDocumentProcessorCtakes p = new SingleDocumentProcessorCtakes();
p.setJcas(jcas);
p.setAssertionDecoderConfiguration(assertionDecoderConfiguration);
// p.setContents(tokenizedContents);
p.setContents(contents);
CharacterOffsetToLineTokenConverter converter = new CharacterOffsetToLineTokenConverterCtakesImpl(
jcas);
p.setConverter2(converter);
for (ApiConcept apiConcept : apiConceptList)
{
//logger
// .info(String.format("dir loader concept: %s", apiConcept.toString()));
p.addConcept(apiConcept);
}
logger
.debug("(logging statement) AssertionAnalysisEngine.process() BEFORE CALLING p.processSingleDocument()");
p.processSingleDocument();
logger
.debug("(logging statement) AssertionAnalysisEngine.process() AFTER CALLING p.processSingleDocument()");
Map<Integer, String> assertionTypeMap = p.getAssertionTypeMap();
//logger.info(String.format(" - done processing ..\"."));
// Map<Integer, Annotation> annotationMap = generateAnnotationMap(jcas,
// Concept.type);
CasIndexer<Annotation> indexer = new CasIndexer<Annotation>(jcas, null);