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(Path modelPath) |
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<TokenTag> |
getChunkerSequenceModel() |
ChunkerFactory |
getFactory() |
getArtifact, getLanguage, getManifestProperty, getVersion, isLoadedFromSerialized, serialize, serialize, serializepublic 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
IOExceptionInvalidFormatExceptionpublic ChunkerModel(File modelFile) throws IOException, InvalidFormatException
IOExceptionInvalidFormatExceptionpublic ChunkerModel(Path modelPath) throws IOException, InvalidFormatException
IOExceptionInvalidFormatExceptionpublic ChunkerModel(URL modelURL) throws IOException, InvalidFormatException
IOExceptionInvalidFormatException@Deprecated public MaxentModel getChunkerModel()
public SequenceClassificationModel<TokenTag> getChunkerSequenceModel()
public ChunkerFactory getFactory()
Copyright © 2018 The Apache Software Foundation. All rights reserved.