Package opennlp.tools.postag
Class POSTaggerFactory.POSDictionarySerializer
- java.lang.Object
-
- opennlp.tools.postag.POSTaggerFactory.POSDictionarySerializer
-
- All Implemented Interfaces:
ArtifactSerializer<POSDictionary>
- Enclosing class:
- POSTaggerFactory
public static class POSTaggerFactory.POSDictionarySerializer extends Object implements ArtifactSerializer<POSDictionary>
-
-
Constructor Summary
Constructors Constructor Description POSDictionarySerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description POSDictionarycreate(InputStream in)Creates the artifact from the providedInputStream.voidserialize(POSDictionary artifact, OutputStream out)Serializes the artifact to the providedOutputStream.
-
-
-
Method Detail
-
create
public POSDictionary create(InputStream in) throws IOException
Description copied from interface:ArtifactSerializerCreates the artifact from the providedInputStream. TheInputStreamremains open.- Specified by:
createin interfaceArtifactSerializer<POSDictionary>- Returns:
- the artifact
- Throws:
IOException
-
serialize
public void serialize(POSDictionary artifact, OutputStream out) throws IOException
Description copied from interface:ArtifactSerializerSerializes the artifact to the providedOutputStream. TheOutputStreamremains open.- Specified by:
serializein interfaceArtifactSerializer<POSDictionary>- Throws:
IOException
-
-