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, 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(Path modelPath) throws IOException, InvalidFormatException
IOException
InvalidFormatException
public ChunkerModel(URL modelURL) throws IOException, InvalidFormatException
IOException
InvalidFormatException
@Deprecated public MaxentModel getChunkerModel()
public SequenceClassificationModel<TokenTag> getChunkerSequenceModel()
public ChunkerFactory getFactory()
Copyright © 2017 The Apache Software Foundation. All rights reserved.