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(Path modelPath) |
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, serialize, serialize, serialize
public 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 SentenceDetectorFactory
public SentenceModel(String languageCode, MaxentModel sentModel, boolean useTokenEnd, Dictionary abbreviations, char[] eosCharacters)
SentenceModel(String, MaxentModel, Map, SentenceDetectorFactory)
instead and pass in a SentenceDetectorFactory
public 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
IOException
public SentenceModel(File modelFile) throws IOException
IOException
public SentenceModel(Path modelPath) throws IOException
IOException
public SentenceModel(URL modelURL) throws IOException
IOException
public SentenceDetectorFactory getFactory()
public MaxentModel getMaxentModel()
public Dictionary getAbbreviations()
public boolean useTokenEnd()
public char[] getEosCharacters()
Copyright © 2018 The Apache Software Foundation. All rights reserved.