Package opennlp.tools.chunker
Class ChunkerModel
- java.lang.Object
-
- opennlp.tools.util.model.BaseModel
-
- opennlp.tools.chunker.ChunkerModel
-
- All Implemented Interfaces:
java.io.Serializable
,ArtifactProvider
public class ChunkerModel extends BaseModel
TheChunkerModel
is the model used by a learnableChunker
.- See Also:
ChunkerME
, Serialized Form
-
-
Field Summary
-
Fields inherited from class opennlp.tools.util.model.BaseModel
TRAINING_CUTOFF_PROPERTY, TRAINING_EVENTHASH_PROPERTY, TRAINING_ITERATIONS_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description ChunkerModel(java.io.File modelFile)
ChunkerModel(java.io.InputStream in)
ChunkerModel(java.lang.String languageCode, MaxentModel chunkerModel, int beamSize, java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries, ChunkerFactory factory)
ChunkerModel(java.lang.String languageCode, MaxentModel chunkerModel, java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries, ChunkerFactory factory)
ChunkerModel(java.lang.String languageCode, MaxentModel chunkerModel, ChunkerFactory factory)
ChunkerModel(java.lang.String languageCode, SequenceClassificationModel<java.lang.String> chunkerModel, java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries, ChunkerFactory factory)
ChunkerModel(java.net.URL modelURL)
ChunkerModel(java.nio.file.Path modelPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MaxentModel
getChunkerModel()
Deprecated.use getChunkerSequenceModel instead.SequenceClassificationModel<TokenTag>
getChunkerSequenceModel()
ChunkerFactory
getFactory()
-
Methods inherited from class opennlp.tools.util.model.BaseModel
getArtifact, getLanguage, getManifestProperty, getVersion, isLoadedFromSerialized, serialize, serialize, serialize
-
-
-
-
Constructor Detail
-
ChunkerModel
public ChunkerModel(java.lang.String languageCode, SequenceClassificationModel<java.lang.String> chunkerModel, java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries, ChunkerFactory factory)
-
ChunkerModel
public ChunkerModel(java.lang.String languageCode, MaxentModel chunkerModel, java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries, ChunkerFactory factory)
-
ChunkerModel
public ChunkerModel(java.lang.String languageCode, MaxentModel chunkerModel, int beamSize, java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries, ChunkerFactory factory)
-
ChunkerModel
public ChunkerModel(java.lang.String languageCode, MaxentModel chunkerModel, ChunkerFactory factory)
-
ChunkerModel
public ChunkerModel(java.io.InputStream in) throws java.io.IOException, InvalidFormatException
- Throws:
java.io.IOException
InvalidFormatException
-
ChunkerModel
public ChunkerModel(java.io.File modelFile) throws java.io.IOException, InvalidFormatException
- Throws:
java.io.IOException
InvalidFormatException
-
ChunkerModel
public ChunkerModel(java.nio.file.Path modelPath) throws java.io.IOException, InvalidFormatException
- Throws:
java.io.IOException
InvalidFormatException
-
ChunkerModel
public ChunkerModel(java.net.URL modelURL) throws java.io.IOException, InvalidFormatException
- Throws:
java.io.IOException
InvalidFormatException
-
-
Method Detail
-
getChunkerModel
@Deprecated public MaxentModel getChunkerModel()
Deprecated.use getChunkerSequenceModel instead. This method will be removed soon.
-
getChunkerSequenceModel
public SequenceClassificationModel<TokenTag> getChunkerSequenceModel()
-
getFactory
public ChunkerFactory getFactory()
-
-