public class ChunkerModel extends BaseModel
ChunkerModel
is the model used
by a learnable Chunker
.ChunkerME
artifactMap, FACTORY_NAME, MANIFEST_ENTRY, toolFactory, TRAINING_CUTOFF_PROPERTY, TRAINING_EVENTHASH_PROPERTY, TRAINING_ITERATIONS_PROPERTY
Constructor and Description |
---|
ChunkerModel(File modelFile) |
ChunkerModel(InputStream in) |
ChunkerModel(String languageCode,
AbstractModel chunkerModel)
Deprecated.
Use
instead. |
ChunkerModel(String languageCode,
AbstractModel chunkerModel,
ChunkerFactory factory) |
ChunkerModel(String languageCode,
AbstractModel chunkerModel,
Map<String,String> manifestInfoEntries)
Deprecated.
|
ChunkerModel(String languageCode,
AbstractModel chunkerModel,
Map<String,String> manifestInfoEntries,
ChunkerFactory factory) |
ChunkerModel(URL modelURL) |
Modifier and Type | Method and Description |
---|---|
AbstractModel |
getChunkerModel() |
protected Class<? extends BaseToolFactory> |
getDefaultFactory()
Sub-classes should override this method if their module has a default
BaseToolFactory sub-class.
|
ChunkerFactory |
getFactory() |
static void |
main(String[] args) |
protected void |
validateArtifactMap()
Validates the parsed artifacts.
|
checkArtifactMap, createArtifactSerializers, createArtifactSerializers, getArtifact, getArtifactSerializer, getLanguage, getManifestProperty, getVersion, isLoadedFromSerialized, serialize, setManifestProperty
public ChunkerModel(String languageCode, AbstractModel chunkerModel, Map<String,String> manifestInfoEntries)
ChunkerModel(String, AbstractModel, Map, ChunkerFactory)
instead.public ChunkerModel(String languageCode, AbstractModel chunkerModel, Map<String,String> manifestInfoEntries, ChunkerFactory factory)
public ChunkerModel(String languageCode, AbstractModel chunkerModel)
instead.
public ChunkerModel(String languageCode, AbstractModel 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
protected void validateArtifactMap() throws InvalidFormatException
BaseModel
InvalidFormatException
.
Note:
Subclasses should generally invoke super.validateArtifactMap at the beginning
of this method.validateArtifactMap
in class BaseModel
InvalidFormatException
public AbstractModel getChunkerModel()
protected Class<? extends BaseToolFactory> getDefaultFactory()
BaseModel
getDefaultFactory
in class BaseModel
BaseToolFactory
for the module, or null if none.public ChunkerFactory getFactory()
public static void main(String[] args) throws FileNotFoundException, IOException
FileNotFoundException
IOException
Copyright © 2015 The Apache Software Foundation. All rights reserved.