opennlp.tools.parser
Class ParserModel

java.lang.Object
  extended by opennlp.tools.util.model.BaseModel
      extended by opennlp.tools.parser.ParserModel

public class ParserModel
extends BaseModel

This is an abstract base class for ParserModel implementations.


Field Summary
 
Fields inherited from class opennlp.tools.util.model.BaseModel
artifactMap, MANIFEST_ENTRY, TRAINING_CUTOFF_PROPERTY, TRAINING_EVENTHASH_PROPERTY, TRAINING_ITERATIONS_PROPERTY
 
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)
           
 
Method Summary
protected  void createArtifactSerializers(Map<String,ArtifactSerializer> serializers)
          Registers all ArtifactSerializer for their artifact file name extensions.
 opennlp.model.AbstractModel getAttachModel()
           
 opennlp.model.AbstractModel getBuildModel()
           
 opennlp.model.AbstractModel getCheckModel()
           
 HeadRules getHeadRules()
           
 ChunkerModel getParserChunkerModel()
           
 POSModel getParserTaggerModel()
           
 ParserType getParserType()
           
static void main(String[] args)
          Deprecated. 
 ParserModel updateBuildModel(opennlp.model.AbstractModel buildModel)
           
 ParserModel updateCheckModel(opennlp.model.AbstractModel checkModel)
           
 ParserModel updateChunkerModel(ChunkerModel chunkModel)
           
 ParserModel updateTaggerModel(POSModel taggerModel)
           
 
Methods inherited from class opennlp.tools.util.model.BaseModel
getArtifactSerializer, getLanguage, getManifestProperty, getVersion, serialize, setManifestProperty, validateArtifactMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.