com.aliasi.chunk
Interface Chunker

All Known Subinterfaces:
NBestChunker
All Known Implementing Classes:
AbstractCharLmRescoringChunker, ApproxDictionaryChunker, ChainCrfChunker, CharLmHmmChunker, CharLmRescoringChunker, ExactDictionaryChunker, HmmChunker, RegExChunker, RescoringChunker, SentenceChunker, TokenChunker, TokenShapeChunker

public interface Chunker

The Chunker interface specifies methods for returning a chunking given a character sequence or character slice.

Note that a Chunker may be used to implement a Parser that extends StringParser by implementing its Parser.parseString(char[],int,int) method using the chunker method chunk(char[],int,int). This will send all extracted chunkings to the parser's contained ChunkHandler.

Since:
LingPipe2.1
Version:
2.1
Author:
Bob Carpenter

Method Summary
 Chunking chunk(char[] cs, int start, int end)
          Return the chunking of the specified character slice.
 Chunking chunk(CharSequence cSeq)
          Return the chunking of the specified character sequence.
 

Method Detail

chunk

Chunking chunk(CharSequence cSeq)
Return the chunking of the specified character sequence.

Parameters:
cSeq - Character sequence to chunk.
Returns:
A chunking of the character sequence.

chunk

Chunking chunk(char[] cs,
               int start,
               int end)
Return the chunking of the specified character slice.

Parameters:
cs - Underlying character sequence.
start - Index of first character in slice.
end - Index of one past the last character in the slice.
Returns:
The chunking over the specified character slice.