com.aliasi.chunk
Interface ConfidenceChunker

All Known Implementing Classes:
AbstractCharLmRescoringChunker, ChainCrfChunker, CharLmHmmChunker, CharLmRescoringChunker, HmmChunker, RescoringChunker

public interface ConfidenceChunker

The ConfidenceChunker interface specifies a method for returning an iterator over chunks in order of confidence. Each chunk will be returned at most once, and scores are assumed to be conditional probabilities of the chunk given the input character slice.

This interface does not extend Chunker because there are many ways a system might return confidence over chunks without being able to return a proper Chunking, which requires a single analysis for an input.

Since:
LingPipe2.3
Version:
3.0
Author:
Bob Carpenter

Method Summary
 Iterator<Chunk> nBestChunks(char[] cs, int start, int end, int maxNBest)
          Returns the n-best chunks in decreasing order of probability estimates.
 

Method Detail

nBestChunks

Iterator<Chunk> nBestChunks(char[] cs,
                            int start,
                            int end,
                            int maxNBest)
Returns the n-best chunks in decreasing order of probability estimates. The return results implement the Chunk interface, and their scores are conditional probability estimates of the chunk given the input character slice.

Parameters:
cs - Underlying character array.
start - Index of first character to analyze.
end - Index of one past the last character to analyze.
maxNBest - The maximum number of chunks to return.