Package opennlp.tools.doccat
Class DoccatModel
- java.lang.Object
-
- opennlp.tools.util.model.BaseModel
-
- opennlp.tools.doccat.DoccatModel
-
- All Implemented Interfaces:
Serializable
,ArtifactProvider
public class DoccatModel extends BaseModel
A model for document categorization- See Also:
- 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 DoccatModel(File modelFile)
DoccatModel(InputStream in)
DoccatModel(String languageCode, MaxentModel doccatModel, Map<String,String> manifestInfoEntries, DoccatFactory factory)
DoccatModel(URL modelURL)
DoccatModel(Path modelPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoccatFactory
getFactory()
MaxentModel
getMaxentModel()
-
Methods inherited from class opennlp.tools.util.model.BaseModel
getArtifact, getLanguage, getManifestProperty, getVersion, isLoadedFromSerialized, serialize, serialize, serialize
-
-
-
-
Constructor Detail
-
DoccatModel
public DoccatModel(String languageCode, MaxentModel doccatModel, Map<String,String> manifestInfoEntries, DoccatFactory factory)
-
DoccatModel
public DoccatModel(InputStream in) throws IOException
- Throws:
IOException
-
DoccatModel
public DoccatModel(File modelFile) throws IOException
- Throws:
IOException
-
DoccatModel
public DoccatModel(Path modelPath) throws IOException
- Throws:
IOException
-
DoccatModel
public DoccatModel(URL modelURL) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getFactory
public DoccatFactory getFactory()
-
getMaxentModel
public MaxentModel getMaxentModel()
-
-