public class BiesoChunking<SUB_CHUNK_TYPE extends Annotation,CHUNK_TYPE extends Annotation> extends Chunking_ImplBase<SUB_CHUNK_TYPE,CHUNK_TYPE>
chunkClass, featureFullName, subChunkClass| Constructor and Description |
|---|
BiesoChunking(Class<? extends SUB_CHUNK_TYPE> subChunkClass,
Class<? extends CHUNK_TYPE> chunkClass) |
BiesoChunking(Class<? extends SUB_CHUNK_TYPE> subChunkClass,
Class<? extends CHUNK_TYPE> chunkClass,
String featureName) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<SUB_CHUNK_TYPE,String> |
getSubChunkToOutcomeMap(JCas jCas,
List<SUB_CHUNK_TYPE> chunkComponents,
List<CHUNK_TYPE> chunks)
Produce a map from sub-chunk annotations to their outcome prefixes (e.g.
|
protected boolean |
isEndOfChunk(char currPrefix,
String currLabel,
char nextPrefix,
String nextLabel)
Determines whether the current outcome represents the end of a chunk.
|
createChunks, createOutcomes, getFeature, getOutcomeSuffixpublic BiesoChunking(Class<? extends SUB_CHUNK_TYPE> subChunkClass, Class<? extends CHUNK_TYPE> chunkClass)
public BiesoChunking(Class<? extends SUB_CHUNK_TYPE> subChunkClass, Class<? extends CHUNK_TYPE> chunkClass, String featureName)
protected Map<SUB_CHUNK_TYPE,String> getSubChunkToOutcomeMap(JCas jCas, List<SUB_CHUNK_TYPE> chunkComponents, List<CHUNK_TYPE> chunks)
Chunking_ImplBasegetSubChunkToOutcomeMap in class Chunking_ImplBase<SUB_CHUNK_TYPE extends Annotation,CHUNK_TYPE extends Annotation>chunkComponents - The sub-annotations that make up the chunks.chunks - The chunk annotations.protected boolean isEndOfChunk(char currPrefix, String currLabel, char nextPrefix, String nextLabel)
Chunking_ImplBaseisEndOfChunk in class Chunking_ImplBase<SUB_CHUNK_TYPE extends Annotation,CHUNK_TYPE extends Annotation>currPrefix - The prefix of the current outcomecurrLabel - The label of the current outcomenextPrefix - The prefix of the following outcomenextLabel - The label of the following outcomeCopyright © 2014. All rights reserved.