opennlp.tools.chunker
Class ChunkerModel

java.lang.Object
  extended by opennlp.tools.util.model.BaseModel
      extended by opennlp.tools.chunker.ChunkerModel
All Implemented Interfaces:
ArtifactProvider

public class ChunkerModel
extends BaseModel

The ChunkerModel is the model used by a learnable Chunker.

See Also:
ChunkerME

Field Summary
 
Fields inherited from class opennlp.tools.util.model.BaseModel
TRAINING_CUTOFF_PROPERTY, TRAINING_EVENTHASH_PROPERTY, TRAINING_ITERATIONS_PROPERTY
 
Constructor Summary
ChunkerModel(File modelFile)
           
ChunkerModel(InputStream in)
           
ChunkerModel(String languageCode, opennlp.model.AbstractModel chunkerModel)
          Deprecated. Use instead.
ChunkerModel(String languageCode, opennlp.model.AbstractModel chunkerModel, ChunkerFactory factory)
           
ChunkerModel(String languageCode, opennlp.model.AbstractModel chunkerModel, Map<String,String> manifestInfoEntries)
          Deprecated. Use ChunkerModel(String, AbstractModel, Map, ChunkerFactory) instead.
ChunkerModel(String languageCode, opennlp.model.AbstractModel chunkerModel, Map<String,String> manifestInfoEntries, ChunkerFactory factory)
           
ChunkerModel(URL modelURL)
           
 
Method Summary
 opennlp.model.AbstractModel getChunkerModel()
           
 ChunkerFactory getFactory()
           
static void main(String[] args)
           
 
Methods inherited from class opennlp.tools.util.model.BaseModel
getArtifact, getLanguage, getManifestProperty, getVersion, isLoadedFromSerialized, serialize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChunkerModel

public ChunkerModel(String languageCode,
                    opennlp.model.AbstractModel chunkerModel,
                    Map<String,String> manifestInfoEntries)
Deprecated. Use ChunkerModel(String, AbstractModel, Map, ChunkerFactory) instead.


ChunkerModel

public ChunkerModel(String languageCode,
                    opennlp.model.AbstractModel chunkerModel,
                    Map<String,String> manifestInfoEntries,
                    ChunkerFactory factory)

ChunkerModel

public ChunkerModel(String languageCode,
                    opennlp.model.AbstractModel chunkerModel)
Deprecated. Use instead.


ChunkerModel

public ChunkerModel(String languageCode,
                    opennlp.model.AbstractModel chunkerModel,
                    ChunkerFactory factory)

ChunkerModel

public ChunkerModel(InputStream in)
             throws IOException,
                    InvalidFormatException
Throws:
IOException
InvalidFormatException

ChunkerModel

public ChunkerModel(File modelFile)
             throws IOException,
                    InvalidFormatException
Throws:
IOException
InvalidFormatException

ChunkerModel

public ChunkerModel(URL modelURL)
             throws IOException,
                    InvalidFormatException
Throws:
IOException
InvalidFormatException
Method Detail

getChunkerModel

public opennlp.model.AbstractModel getChunkerModel()

getFactory

public ChunkerFactory getFactory()

main

public static void main(String[] args)
                 throws FileNotFoundException,
                        IOException
Throws:
FileNotFoundException
IOException


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.