|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.columbia.cs.ref.tool.document.splitter.impl.OpenNLPMESplitter
public class OpenNLPMESplitter
The Class OpenNLPMESplitter is an implementation of a sentence splitter that uses the SentenceDetectorME models from OpenNLP.
Constructor Summary | |
---|---|
OpenNLPMESplitter(java.lang.String path)
Instantiates a OpenNLP sentence splitter. |
Method Summary | |
---|---|
Sentence[] |
split(Document d)
Splits the input document into sentences |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OpenNLPMESplitter(java.lang.String path) throws java.io.FileNotFoundException
path
- the path to the model to be used.
java.io.FileNotFoundException
- the file not found exceptionMethod Detail |
---|
public Sentence[] split(Document d)
SentenceSplitter
split
in interface SentenceSplitter
d
- input document
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |