public class ParserModel extends BaseModel
ParserModel implementations.artifactMap, FACTORY_NAME, MANIFEST_ENTRY, toolFactory, TRAINING_CUTOFF_PROPERTY, TRAINING_EVENTHASH_PROPERTY, TRAINING_ITERATIONS_PROPERTY| Constructor and Description |
|---|
ParserModel(File modelFile) |
ParserModel(InputStream in) |
ParserModel(String languageCode,
AbstractModel buildModel,
AbstractModel checkModel,
AbstractModel attachModel,
POSModel parserTagger,
ChunkerModel chunkerTagger,
HeadRules headRules,
ParserType modelType) |
ParserModel(String languageCode,
AbstractModel buildModel,
AbstractModel checkModel,
AbstractModel attachModel,
POSModel parserTagger,
ChunkerModel chunkerTagger,
HeadRules headRules,
ParserType modelType,
Map<String,String> manifestInfoEntries) |
ParserModel(String languageCode,
AbstractModel buildModel,
AbstractModel checkModel,
POSModel parserTagger,
ChunkerModel chunkerTagger,
HeadRules headRules,
ParserType type,
Map<String,String> manifestInfoEntries) |
ParserModel(URL modelURL) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createArtifactSerializers(Map<String,ArtifactSerializer> serializers)
Registers all
ArtifactSerializer for their artifact file name extensions. |
AbstractModel |
getAttachModel() |
AbstractModel |
getBuildModel() |
AbstractModel |
getCheckModel() |
HeadRules |
getHeadRules() |
ChunkerModel |
getParserChunkerModel() |
POSModel |
getParserTaggerModel() |
ParserType |
getParserType() |
ParserModel |
updateBuildModel(AbstractModel buildModel) |
ParserModel |
updateCheckModel(AbstractModel checkModel) |
ParserModel |
updateChunkerModel(ChunkerModel chunkModel) |
ParserModel |
updateTaggerModel(POSModel taggerModel) |
protected void |
validateArtifactMap()
Validates the parsed artifacts.
|
checkArtifactMap, createArtifactSerializers, getArtifact, getArtifactSerializer, getDefaultFactory, getLanguage, getManifestProperty, getVersion, isLoadedFromSerialized, serialize, setManifestPropertypublic ParserModel(String languageCode, AbstractModel buildModel, AbstractModel checkModel, AbstractModel attachModel, POSModel parserTagger, ChunkerModel chunkerTagger, HeadRules headRules, ParserType modelType, Map<String,String> manifestInfoEntries)
public ParserModel(String languageCode, AbstractModel buildModel, AbstractModel checkModel, AbstractModel attachModel, POSModel parserTagger, ChunkerModel chunkerTagger, HeadRules headRules, ParserType modelType)
public ParserModel(String languageCode, AbstractModel buildModel, AbstractModel checkModel, POSModel parserTagger, ChunkerModel chunkerTagger, HeadRules headRules, ParserType type, Map<String,String> manifestInfoEntries)
public ParserModel(InputStream in) throws IOException, InvalidFormatException
IOExceptionInvalidFormatExceptionpublic ParserModel(File modelFile) throws IOException, InvalidFormatException
IOExceptionInvalidFormatExceptionpublic ParserModel(URL modelURL) throws IOException, InvalidFormatException
IOExceptionInvalidFormatExceptionprotected void createArtifactSerializers(Map<String,ArtifactSerializer> serializers)
BaseModelArtifactSerializer for their artifact file name extensions.
The registered ArtifactSerializer are used to create and serialize
resources in the model package.
Override this method to register custom ArtifactSerializers.
Note:
Subclasses should generally invoke super.createArtifactSerializers at the beginning
of this method.
This method is called during construction.createArtifactSerializers in class BaseModelserializers - the key of the map is the file extension used to lookup
the ArtifactSerializer.public ParserType getParserType()
public AbstractModel getBuildModel()
public AbstractModel getCheckModel()
public AbstractModel getAttachModel()
public POSModel getParserTaggerModel()
public ChunkerModel getParserChunkerModel()
public HeadRules getHeadRules()
public ParserModel updateBuildModel(AbstractModel buildModel)
public ParserModel updateCheckModel(AbstractModel checkModel)
public ParserModel updateTaggerModel(POSModel taggerModel)
public ParserModel updateChunkerModel(ChunkerModel chunkModel)
protected void validateArtifactMap()
throws InvalidFormatException
BaseModelInvalidFormatException.
Note:
Subclasses should generally invoke super.validateArtifactMap at the beginning
of this method.validateArtifactMap in class BaseModelInvalidFormatExceptionCopyright © 2019 The Apache Software Foundation. All rights reserved.