opennlp.tools.parser
Class ParserModel
java.lang.Object
opennlp.tools.util.model.BaseModel
opennlp.tools.parser.ParserModel
public class ParserModel
- extends BaseModel
This is an abstract base class for ParserModel implementations.
|
Constructor Summary |
ParserModel(InputStream in)
|
ParserModel(String languageCode,
opennlp.model.AbstractModel buildModel,
opennlp.model.AbstractModel checkModel,
opennlp.model.AbstractModel attachModel,
POSModel parserTagger,
ChunkerModel chunkerTagger,
HeadRules headRules,
ParserType modelType)
|
ParserModel(String languageCode,
opennlp.model.AbstractModel buildModel,
opennlp.model.AbstractModel checkModel,
opennlp.model.AbstractModel attachModel,
POSModel parserTagger,
ChunkerModel chunkerTagger,
HeadRules headRules,
ParserType modelType,
Map<String,String> manifestInfoEntries)
|
ParserModel(String languageCode,
opennlp.model.AbstractModel buildModel,
opennlp.model.AbstractModel checkModel,
POSModel parserTagger,
ChunkerModel chunkerTagger,
HeadRules headRules,
ParserType type,
Map<String,String> manifestInfoEntries)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParserModel
public ParserModel(String languageCode,
opennlp.model.AbstractModel buildModel,
opennlp.model.AbstractModel checkModel,
opennlp.model.AbstractModel attachModel,
POSModel parserTagger,
ChunkerModel chunkerTagger,
HeadRules headRules,
ParserType modelType,
Map<String,String> manifestInfoEntries)
ParserModel
public ParserModel(String languageCode,
opennlp.model.AbstractModel buildModel,
opennlp.model.AbstractModel checkModel,
opennlp.model.AbstractModel attachModel,
POSModel parserTagger,
ChunkerModel chunkerTagger,
HeadRules headRules,
ParserType modelType)
ParserModel
public ParserModel(String languageCode,
opennlp.model.AbstractModel buildModel,
opennlp.model.AbstractModel checkModel,
POSModel parserTagger,
ChunkerModel chunkerTagger,
HeadRules headRules,
ParserType type,
Map<String,String> manifestInfoEntries)
ParserModel
public ParserModel(InputStream in)
throws IOException,
InvalidFormatException
- Throws:
IOException
InvalidFormatException
createArtifactSerializers
protected void createArtifactSerializers(Map<String,ArtifactSerializer> serializers)
- Description copied from class:
BaseModel
- Registers all
ArtifactSerializer 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.
- Overrides:
createArtifactSerializers in class BaseModel
- Parameters:
serializers - the key of the map is the file extension used to lookup
the ArtifactSerializer.
getParserType
public ParserType getParserType()
getBuildModel
public opennlp.model.AbstractModel getBuildModel()
getCheckModel
public opennlp.model.AbstractModel getCheckModel()
getAttachModel
public opennlp.model.AbstractModel getAttachModel()
getParserTaggerModel
public POSModel getParserTaggerModel()
getParserChunkerModel
public ChunkerModel getParserChunkerModel()
getHeadRules
public HeadRules getHeadRules()
updateBuildModel
public ParserModel updateBuildModel(opennlp.model.AbstractModel buildModel)
updateCheckModel
public ParserModel updateCheckModel(opennlp.model.AbstractModel checkModel)
updateTaggerModel
public ParserModel updateTaggerModel(POSModel taggerModel)
updateChunkerModel
public ParserModel updateChunkerModel(ChunkerModel chunkModel)
main
@Deprecated
public static void main(String[] args)
throws FileNotFoundException,
IOException,
InvalidFormatException
- Deprecated.
- Throws:
FileNotFoundException
IOException
InvalidFormatException
Copyright © 2010. All Rights Reserved.