Package opennlp.uima.normalizer
Klasse StringDictionary
java.lang.Object
opennlp.uima.normalizer.StringDictionary
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungget(StringList key) Retrieves a value from a dictionary via itskey.voidput(StringList key, String value) Adds a new entry to the dictionary.voidserialize(OutputStream out) Writes the dictionary to the givenOutputStream.
-
Konstruktordetails
-
StringDictionary
public StringDictionary() -
StringDictionary
InitializesStringDictionaryvia a specifiedInputStream.- Parameter:
in- A valid, openInputStreamto initialize with.- Löst aus:
IOException- Thrown if IO errors occurred.
-
-
Methodendetails
-
get
Retrieves a value from a dictionary via itskey.- Parameter:
key- Thekeyto get value with.- Gibt zurück:
- Retrieves a corresponding String value or
nullif not found.
-
put
Adds a new entry to the dictionary.- Parameter:
key- Thekeyunder which to put thevalue.value- The value to put.
-
serialize
Writes the dictionary to the givenOutputStream.- Parameter:
out- A valid, openOutputStreamto serialize to.- Löst aus:
IOException- Thrown if IO errors occurred during serialization.
-