|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.columbia.cs.ref.tool.chunker.impl.OpenNLPChunker
public class OpenNLPChunker
The Class OpenNLPChunker is an implementation of a Chunker that uses the ChunkerME models from OpenNLP.
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 |
---|
public OpenNLPChunker(java.lang.String path)
path
- the path to the model to be used.Method Detail |
---|
public java.lang.String[] chunk(java.lang.String[] toks, java.lang.String[] tags)
Chunker
chunk
in interface Chunker
toks
- the tokenization of a sentencetags
- the POS tags of a sentence
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |