|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsg.edu.nus.comp.nlp.ims.util.COpenNLPSentenceSplitter
public final class COpenNLPSentenceSplitter
opennlp sentence splitter.
Constructor Summary | |
---|---|
COpenNLPSentenceSplitter()
constructor |
|
COpenNLPSentenceSplitter(java.io.File p_File)
constructor |
|
COpenNLPSentenceSplitter(opennlp.maxent.MaxentModel p_Model)
constructor |
|
COpenNLPSentenceSplitter(java.lang.String p_FileName)
constructor |
Method Summary | |
---|---|
static void |
setDefaultModel(java.io.File p_File)
set default sentence splitter model |
static void |
setDefaultModel(opennlp.maxent.MaxentModel p_Model)
set default sentence splitter model |
static void |
setDefaultModel(java.lang.String p_FileName)
set default sentence splitter model |
java.lang.String[] |
split(java.lang.String p_Data)
split input into sentences |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public COpenNLPSentenceSplitter()
public COpenNLPSentenceSplitter(java.io.File p_File) throws java.io.IOException
p_File
- model file
java.io.IOException
- exception while reading modelpublic COpenNLPSentenceSplitter(java.lang.String p_FileName) throws java.io.IOException
p_FileName
- model file
java.io.IOException
- exception while reading modelpublic COpenNLPSentenceSplitter(opennlp.maxent.MaxentModel p_Model)
p_Model
- modelMethod Detail |
---|
public static void setDefaultModel(opennlp.maxent.MaxentModel p_Model)
p_Model
- modelpublic static void setDefaultModel(java.lang.String p_FileName) throws java.io.IOException
p_FileName
- Model file
java.io.IOException
- exception while reading modelpublic static void setDefaultModel(java.io.File p_File) throws java.io.IOException
p_File
- Model file
java.io.IOException
- exception while reading modelpublic java.lang.String[] split(java.lang.String p_Data)
ISentenceSplitter
split
in interface ISentenceSplitter
p_Data
- input string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |