public class ChunkerModel extends BaseModel
ChunkerModel
is the model used
by a learnable Chunker
.ChunkerME
,
Serialized FormTRAINING_CUTOFF_PROPERTY, TRAINING_EVENTHASH_PROPERTY, TRAINING_ITERATIONS_PROPERTY
Constructor and Description |
---|
ChunkerModel(File modelFile) |
ChunkerModel(InputStream in) |
ChunkerModel(String languageCode,
MaxentModel chunkerModel,
ChunkerFactory factory) |
ChunkerModel(String languageCode,
MaxentModel chunkerModel,
int beamSize,
Map<String,String> manifestInfoEntries,
ChunkerFactory factory) |
ChunkerModel(String languageCode,
MaxentModel chunkerModel,
Map<String,String> manifestInfoEntries,
ChunkerFactory factory) |
ChunkerModel(String languageCode,
SequenceClassificationModel<String> chunkerModel,
Map<String,String> manifestInfoEntries,
ChunkerFactory factory) |
ChunkerModel(URL modelURL) |
Modifier and Type | Method and Description |
---|---|
MaxentModel |
getChunkerModel()
Deprecated.
use getChunkerSequenceModel instead. This method will be removed soon.
|
SequenceClassificationModel<String> |
getChunkerSequenceModel() |
ChunkerFactory |
getFactory() |
getArtifact, getLanguage, getManifestProperty, getVersion, isLoadedFromSerialized, serialize
public ChunkerModel(String languageCode, SequenceClassificationModel<String> chunkerModel, Map<String,String> manifestInfoEntries, ChunkerFactory factory)
public ChunkerModel(String languageCode, MaxentModel chunkerModel, Map<String,String> manifestInfoEntries, ChunkerFactory factory)
public ChunkerModel(String languageCode, MaxentModel chunkerModel, int beamSize, Map<String,String> manifestInfoEntries, ChunkerFactory factory)
public ChunkerModel(String languageCode, MaxentModel chunkerModel, ChunkerFactory factory)
public ChunkerModel(InputStream in) throws IOException, InvalidFormatException
IOException
InvalidFormatException
public ChunkerModel(File modelFile) throws IOException, InvalidFormatException
IOException
InvalidFormatException
public ChunkerModel(URL modelURL) throws IOException, InvalidFormatException
IOException
InvalidFormatException
@Deprecated public MaxentModel getChunkerModel()
public SequenceClassificationModel<String> getChunkerSequenceModel()
public ChunkerFactory getFactory()
Copyright © 2017 The Apache Software Foundation. All rights reserved.