Package opennlp.tools.postag
Klasse POSTaggerFactory.POSDictionarySerializer
java.lang.Object
opennlp.tools.postag.POSTaggerFactory.POSDictionarySerializer
- Alle implementierten Schnittstellen:
ArtifactSerializer<POSDictionary>
- Umschließende Klasse:
POSTaggerFactory
public static class POSTaggerFactory.POSDictionarySerializer
extends Object
implements ArtifactSerializer<POSDictionary>
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcreate
(InputStream in) Creates an artifact from the providedInputStream
.void
serialize
(POSDictionary artifact, OutputStream out) Serializes an artifact to the providedOutputStream
.
-
Konstruktordetails
-
POSDictionarySerializer
public POSDictionarySerializer()
-
-
Methodendetails
-
create
Beschreibung aus Schnittstelle kopiert:ArtifactSerializer
Creates an artifact from the providedInputStream
.Note: The
InputStream
remains open.- Angegeben von:
create
in SchnittstelleArtifactSerializer<POSDictionary>
- Parameter:
in
- A valid, openInputStream
ready to read from.- Gibt zurück:
- A valid
artifact
. - Löst aus:
IOException
- Thrown if IO errors occurred during creation.
-
serialize
Beschreibung aus Schnittstelle kopiert:ArtifactSerializer
Serializes an artifact to the providedOutputStream
.Note: The
OutputStream
remains open.- Angegeben von:
serialize
in SchnittstelleArtifactSerializer<POSDictionary>
- Parameter:
artifact
- A validartifact
.out
- A valid, openOutputStream
ready to write to.- Löst aus:
IOException
- Thrown if IO errors occurred during serialization.
-