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
SentenceModel
public SentenceModel(String languageCode,
opennlp.model.AbstractModel sentModel,
boolean useTokenEnd,
Dictionary abbreviations,
Map<String,String> manifestInfoEntries)
SentenceModel
public SentenceModel(String languageCode,
opennlp.model.AbstractModel sentModel,
boolean useTokenEnd,
Dictionary abbreviations)
SentenceModel
public SentenceModel(InputStream in)
throws IOException,
InvalidFormatException
- Throws:
IOException
InvalidFormatException
getMaxentModel
public opennlp.model.AbstractModel getMaxentModel()
getAbbreviations
public Dictionary getAbbreviations()
useTokenEnd
public boolean useTokenEnd()
main
public static void main(String[] args)
throws FileNotFoundException,
IOException,
InvalidFormatException
- Throws:
FileNotFoundException
IOException
InvalidFormatException
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.