public class ChunkerModel extends BaseModel
ChunkerModel is the model used
by a learnable Chunker.ChunkerMEartifactMap, 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, setManifestPropertypublic 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
IOExceptionInvalidFormatExceptionpublic ChunkerModel(File modelFile) throws IOException, InvalidFormatException
IOExceptionInvalidFormatExceptionpublic ChunkerModel(URL modelURL) throws IOException, InvalidFormatException
IOExceptionInvalidFormatExceptionprotected void validateArtifactMap()
throws InvalidFormatException
BaseModelInvalidFormatException.
Note:
Subclasses should generally invoke super.validateArtifactMap at the beginning
of this method.validateArtifactMap in class BaseModelInvalidFormatExceptionpublic AbstractModel getChunkerModel()
protected Class<? extends BaseToolFactory> getDefaultFactory()
BaseModelgetDefaultFactory in class BaseModelBaseToolFactory for the module, or null if none.public ChunkerFactory getFactory()
public static void main(String[] args) throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.