edu.columbia.cs.ref.tool.document.splitter.impl
Class OpenNLPMESplitter

java.lang.Object
  extended by edu.columbia.cs.ref.tool.document.splitter.impl.OpenNLPMESplitter
All Implemented Interfaces:
SentenceSplitter

public class OpenNLPMESplitter
extends java.lang.Object
implements SentenceSplitter

The Class OpenNLPMESplitter is an implementation of a sentence splitter that uses the SentenceDetectorME models from OpenNLP.

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

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

OpenNLPMESplitter

public OpenNLPMESplitter(java.lang.String path)
                  throws java.io.FileNotFoundException
Instantiates a OpenNLP sentence splitter.

Parameters:
path - the path to the model to be used.
Throws:
java.io.FileNotFoundException - the file not found exception
Method Detail

split

public Sentence[] split(Document d)
Description copied from interface: SentenceSplitter
Splits the input document into sentences

Specified by:
split in interface SentenceSplitter
Parameters:
d - input document
Returns:
the sentences of the input document