public class SentenceModel extends BaseModel
SentenceModel
is the model used
by a learnable SentenceDetector
.SentenceDetectorME
TRAINING_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() |
static void |
main(String[] args) |
boolean |
useTokenEnd() |
getArtifact, getLanguage, getManifestProperty, getVersion, isLoadedFromSerialized, 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, InvalidFormatException
IOException
InvalidFormatException
public SentenceModel(File modelFile) throws IOException, InvalidFormatException
IOException
InvalidFormatException
public SentenceModel(URL modelURL) throws IOException, InvalidFormatException
IOException
InvalidFormatException
public SentenceDetectorFactory getFactory()
public MaxentModel getMaxentModel()
public Dictionary getAbbreviations()
public boolean useTokenEnd()
public char[] getEosCharacters()
public static void main(String[] args) throws FileNotFoundException, IOException, InvalidFormatException
Copyright © 2015 The Apache Software Foundation. All rights reserved.