org.apache.ctakes.chunker.ae
Class PhraseTypeChunkCreator
java.lang.Object
org.apache.ctakes.chunker.ae.PhraseTypeChunkCreator
- All Implemented Interfaces:
- ChunkCreator
public class PhraseTypeChunkCreator
- extends java.lang.Object
- implements ChunkCreator
This chunker creator creates annotations of type org.apache.ctakes.typesystem.type.* and
sets the chunkType feature of the annotation to the passed in parameter chunkType.
- Author:
- Philip
- See Also:
org.apache.ctakes.chunker.ae.type
Method Summary |
org.apache.uima.jcas.tcas.Annotation |
createChunk(org.apache.uima.jcas.JCas jCas,
int start,
int end,
java.lang.String chunkType)
|
void |
initialize(org.apache.uima.UimaContext uimaContext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PhraseTypeChunkCreator
public PhraseTypeChunkCreator()
initialize
public void initialize(org.apache.uima.UimaContext uimaContext)
throws org.apache.uima.resource.ResourceInitializationException
- Specified by:
initialize
in interface ChunkCreator
- Throws:
org.apache.uima.resource.ResourceInitializationException
createChunk
public org.apache.uima.jcas.tcas.Annotation createChunk(org.apache.uima.jcas.JCas jCas,
int start,
int end,
java.lang.String chunkType)
- Specified by:
createChunk
in interface ChunkCreator
- Parameters:
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"
- Returns:
- the annotation created by this method. If no annotation is created, then return null.