opennlp.tools.chunker
Class ChunkerModel
java.lang.Object
opennlp.tools.util.model.BaseModel
opennlp.tools.chunker.ChunkerModel
public class ChunkerModel
- extends BaseModel
The ChunkerModel
is the model used
by a learnable Chunker
.
- See Also:
ChunkerME
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChunkerModel
public ChunkerModel(String languageCode,
opennlp.model.AbstractModel chunkerModel,
Map<String,String> manifestInfoEntries)
ChunkerModel
public ChunkerModel(String languageCode,
opennlp.model.AbstractModel chunkerModel)
ChunkerModel
public ChunkerModel(InputStream in)
throws IOException,
InvalidFormatException
- Throws:
IOException
InvalidFormatException
validateArtifactMap
protected void validateArtifactMap()
throws InvalidFormatException
- Description copied from class:
BaseModel
- Validates the parsed artifacts. If something is not
valid subclasses should throw an
InvalidFormatException
.
Note:
Subclasses should generally invoke super.validateArtifactMap at the beginning
of this method.
- Overrides:
validateArtifactMap
in class BaseModel
- Throws:
InvalidFormatException
getChunkerModel
public opennlp.model.AbstractModel getChunkerModel()
main
public static void main(String[] args)
throws FileNotFoundException,
IOException
- Throws:
FileNotFoundException
IOException
Copyright © 2010. All Rights Reserved.