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.voidserialize(POSDictionary artifact, OutputStream out) Serializes an artifact to the providedOutputStream.
-
Konstruktordetails
-
POSDictionarySerializer
public POSDictionarySerializer()
-
-
Methodendetails
-
create
Beschreibung aus Schnittstelle kopiert:ArtifactSerializerCreates an artifact from the providedInputStream.Note: The
InputStreamremains open.- Angegeben von:
createin SchnittstelleArtifactSerializer<POSDictionary>- Parameter:
in- A valid, openInputStreamready 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:ArtifactSerializerSerializes an artifact to the providedOutputStream.Note: The
OutputStreamremains open.- Angegeben von:
serializein SchnittstelleArtifactSerializer<POSDictionary>- Parameter:
artifact- A validartifact.out- A valid, openOutputStreamready to write to.- Löst aus:
IOException- Thrown if IO errors occurred during serialization.
-