public class SentenceModel extends BaseModel
SentenceModel is the model used
by a learnable SentenceDetector.SentenceDetectorME,
Serialized FormTRAINING_CUTOFF_PROPERTY, TRAINING_EVENTHASH_PROPERTY, TRAINING_ITERATIONS_PROPERTY| Constructor and Description |
|---|
SentenceModel(File modelFile) |
SentenceModel(InputStream in) |
SentenceModel(String languageCode,
MaxentModel sentModel,
boolean useTokenEnd,
Dictionary abbreviations) |
SentenceModel(String languageCode,
MaxentModel sentModel,
boolean useTokenEnd,
Dictionary abbreviations,
char[] eosCharacters)
Deprecated.
Use
SentenceModel(String, MaxentModel, Map, SentenceDetectorFactory)
instead and pass in a SentenceDetectorFactory |
SentenceModel(String languageCode,
MaxentModel sentModel,
boolean useTokenEnd,
Dictionary abbreviations,
char[] eosCharacters,
Map<String,String> manifestInfoEntries)
Deprecated.
Use
SentenceModel(String, MaxentModel, Map, SentenceDetectorFactory)
instead and pass in a SentenceDetectorFactory |
SentenceModel(String languageCode,
MaxentModel sentModel,
boolean useTokenEnd,
Dictionary abbreviations,
Map<String,String> manifestInfoEntries) |
SentenceModel(String languageCode,
MaxentModel sentModel,
Map<String,String> manifestInfoEntries,
SentenceDetectorFactory sdFactory) |
SentenceModel(URL modelURL) |
| Modifier and Type | Method and Description |
|---|---|
Dictionary |
getAbbreviations() |
char[] |
getEosCharacters() |
SentenceDetectorFactory |
getFactory() |
MaxentModel |
getMaxentModel() |
boolean |
useTokenEnd() |
getArtifact, getLanguage, getManifestProperty, getVersion, isLoadedFromSerialized, serializepublic SentenceModel(String languageCode, MaxentModel sentModel, Map<String,String> manifestInfoEntries, SentenceDetectorFactory sdFactory)
public SentenceModel(String languageCode, MaxentModel sentModel, boolean useTokenEnd, Dictionary abbreviations, char[] eosCharacters, Map<String,String> manifestInfoEntries)
SentenceModel(String, MaxentModel, Map, SentenceDetectorFactory)
instead and pass in a SentenceDetectorFactorypublic SentenceModel(String languageCode, MaxentModel sentModel, boolean useTokenEnd, Dictionary abbreviations, char[] eosCharacters)
SentenceModel(String, MaxentModel, Map, SentenceDetectorFactory)
instead and pass in a SentenceDetectorFactorypublic SentenceModel(String languageCode, MaxentModel sentModel, boolean useTokenEnd, Dictionary abbreviations, Map<String,String> manifestInfoEntries)
public SentenceModel(String languageCode, MaxentModel sentModel, boolean useTokenEnd, Dictionary abbreviations)
public SentenceModel(InputStream in) throws IOException
IOExceptionpublic SentenceModel(File modelFile) throws IOException
IOExceptionpublic SentenceModel(URL modelURL) throws IOException
IOExceptionpublic SentenceDetectorFactory getFactory()
public MaxentModel getMaxentModel()
public Dictionary getAbbreviations()
public boolean useTokenEnd()
public char[] getEosCharacters()
Copyright © 2017 The Apache Software Foundation. All rights reserved.