edu.columbia.cs.ref.tool.chunker.impl
Class OpenNLPChunker

java.lang.Object
  extended by edu.columbia.cs.ref.tool.chunker.impl.OpenNLPChunker
All Implemented Interfaces:
Chunker

public class OpenNLPChunker
extends java.lang.Object
implements Chunker

The Class OpenNLPChunker is an implementation of a Chunker that uses the ChunkerME models from OpenNLP.

Since:
2011-09-27
Version:
0.1
Author:
Pablo Barrio, Goncalo Simoes

Constructor Summary
OpenNLPChunker(java.lang.String path)
          Instantiates a new OpenNLP chunker.
 
Method Summary
 java.lang.String[] chunk(java.lang.String[] toks, java.lang.String[] tags)
          Given a tokenization and the coresponding POS tags, it returns the chunking tags for each token
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenNLPChunker

public OpenNLPChunker(java.lang.String path)
Instantiates a new OpenNLP chunker.

Parameters:
path - the path to the model to be used.
Method Detail

chunk

public java.lang.String[] chunk(java.lang.String[] toks,
                                java.lang.String[] tags)
Description copied from interface: Chunker
Given a tokenization and the coresponding POS tags, it returns the chunking tags for each token

Specified by:
chunk in interface Chunker
Parameters:
toks - the tokenization of a sentence
tags - the POS tags of a sentence
Returns:
the chunking tags