public class POSTaggerFactory extends BaseToolFactory
| Constructor and Description |
|---|
POSTaggerFactory()
Creates a
POSTaggerFactory that provides the default implementation
of the resources. |
POSTaggerFactory(Dictionary ngramDictionary,
TagDictionary posDictionary)
Creates a
POSTaggerFactory. |
create, create, createManifestEntriespublic POSTaggerFactory()
POSTaggerFactory that provides the default implementation
of the resources.public POSTaggerFactory(Dictionary ngramDictionary, TagDictionary posDictionary)
POSTaggerFactory. Use this constructor to
programmatically create a factory.ngramDictionary - posDictionary - public java.util.Map<java.lang.String,ArtifactSerializer> createArtifactSerializersMap()
BaseToolFactoryMap with pairs of keys and ArtifactSerializer.
The models implementation should call this method from
BaseModel#createArtifactSerializersMap
The base implementation will return a HashMap that should be
populated by sub-classes.
createArtifactSerializersMap in class BaseToolFactorypublic java.util.Map<java.lang.String,java.lang.Object> createArtifactMap()
BaseToolFactoryMap with pairs of keys and objects. The models
implementation should call this constructor that creates a model
programmatically.
The base implementation will return a HashMap that should be
populated by sub-classes.
createArtifactMap in class BaseToolFactorypublic TagDictionary createTagDictionary(java.io.File dictionary) throws InvalidFormatException, java.io.FileNotFoundException, java.io.IOException
InvalidFormatExceptionjava.io.FileNotFoundExceptionjava.io.IOExceptionpublic TagDictionary createTagDictionary(java.io.InputStream in) throws InvalidFormatException, java.io.IOException
InvalidFormatExceptionjava.io.IOExceptionpublic void setTagDictionary(TagDictionary dictionary)
public TagDictionary getTagDictionary()
public Dictionary getDictionary()
public void setDictionary(Dictionary ngramDict)
public POSContextGenerator getPOSContextGenerator()
public POSContextGenerator getPOSContextGenerator(int cacheSize)
public SequenceValidator<java.lang.String> getSequenceValidator()
public void validateArtifactMap()
throws InvalidFormatException
BaseToolFactoryInvalidFormatException.
Note:
Subclasses should generally invoke super.validateArtifactMap at the beginning
of this method.validateArtifactMap in class BaseToolFactoryInvalidFormatExceptionpublic static POSTaggerFactory create(java.lang.String subclassName, Dictionary ngramDictionary, TagDictionary posDictionary) throws InvalidFormatException
InvalidFormatExceptionpublic TagDictionary createEmptyTagDictionary()
Copyright © 2010 - 2020 Adobe. All Rights Reserved