opennlp.tools.chunker
Interface Chunker

All Known Subinterfaces:
ParserChunker
All Known Implementing Classes:
ChunkerME, ParserChunker, TreebankChunker

public interface Chunker

The interface for chunkers which provide chunk tags for a sequence of tokens.


Method Summary
 java.util.List chunk(java.util.List toks, java.util.List tags)
          Generates chunk tags for the given sequence returning the result in a list.
 java.lang.String[] chunk(java.lang.Object[] toks, java.lang.String[] tags)
          Generates chunk tags for the given sequence returning the result in an array.
 

Method Detail

chunk

java.util.List chunk(java.util.List toks,
                     java.util.List tags)
Generates chunk tags for the given sequence returning the result in a list.

Parameters:
toks - a list of the tokens or words of the sequence.
tags - a list of the pos tags of the sequence.
Returns:
a list of chunk tags for each token in the sequence.

chunk

java.lang.String[] chunk(java.lang.Object[] toks,
                         java.lang.String[] tags)
Generates chunk tags for the given sequence returning the result in an array.

Parameters:
toks - an array of the tokens or words of the sequence.
tags - an array of the pos tags of the sequence.
Returns:
an array of chunk tags for each token in the sequence.


Copyright 2008 Jason Baldridge, Gann Bierner, and Thomas Morton. All Rights Reserved.