Package opennlp.tools.util.model
Class POSModelSerializer
java.lang.Object
opennlp.tools.util.model.POSModelSerializer
- All Implemented Interfaces:
ArtifactSerializer<POSModel>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(InputStream in) Creates the artifact from the providedInputStream
.void
serialize
(POSModel artifact, OutputStream out) Serializes the artifact to the providedOutputStream
.
-
Constructor Details
-
POSModelSerializer
public POSModelSerializer()
-
-
Method Details
-
create
Description copied from interface:ArtifactSerializer
Creates the artifact from the providedInputStream
. TheInputStream
remains open.- Specified by:
create
in interfaceArtifactSerializer<POSModel>
- Returns:
- the artifact
- Throws:
IOException
-
serialize
Description copied from interface:ArtifactSerializer
Serializes the artifact to the providedOutputStream
. TheOutputStream
remains open.- Specified by:
serialize
in interfaceArtifactSerializer<POSModel>
- Parameters:
artifact
-out
-- Throws:
IOException
-