opennlp.tools.sentdetect
Class SentenceModel
java.lang.Object
opennlp.tools.util.model.BaseModel
opennlp.tools.sentdetect.SentenceModel
public class SentenceModel
- extends BaseModel
The SentenceModel
is the model used
by a learnable SentenceDetector
.
- See Also:
SentenceDetectorME
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SentenceModel
public SentenceModel(java.lang.String languageCode,
AbstractModel sentModel,
boolean useTokenEnd,
Dictionary abbreviations,
java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries)
SentenceModel
public SentenceModel(java.lang.String languageCode,
AbstractModel sentModel,
boolean useTokenEnd,
Dictionary abbreviations)
SentenceModel
public SentenceModel(java.io.InputStream in)
throws java.io.IOException,
InvalidFormatException
- Throws:
java.io.IOException
InvalidFormatException
getMaxentModel
public AbstractModel getMaxentModel()
getAbbreviations
public Dictionary getAbbreviations()
useTokenEnd
public boolean useTokenEnd()
main
public static void main(java.lang.String[] args)
throws java.io.FileNotFoundException,
java.io.IOException,
InvalidFormatException
- Throws:
java.io.FileNotFoundException
java.io.IOException
InvalidFormatException
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.