public class DefaultChunkCreator extends Object implements ChunkCreator
org.apache.ctakes.typesystem.type.Chunk
Constructor and Description |
---|
DefaultChunkCreator() |
Modifier and Type | Method and Description |
---|---|
org.apache.uima.jcas.tcas.Annotation |
createChunk(org.apache.uima.jcas.JCas jCas,
int start,
int end,
String chunkType) |
void |
initialize(org.apache.uima.UimaContext annotatorContext) |
public void initialize(org.apache.uima.UimaContext annotatorContext) throws org.apache.uima.resource.ResourceInitializationException
initialize
in interface ChunkCreator
org.apache.uima.resource.ResourceInitializationException
public org.apache.uima.jcas.tcas.Annotation createChunk(org.apache.uima.jcas.JCas jCas, int start, int end, String chunkType)
createChunk
in interface ChunkCreator
jCas
- the view to which to add the created chunk.start
- the beginning offset of the chunkend
- the ending offset of the chunkchunkType
- a string description of the chunk type - e.g. "NP"Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.