public class StringDictionary extends Object
Constructor and Description |
---|
StringDictionary() |
StringDictionary(InputStream in)
Initializes the current instance.
|
Modifier and Type | Method and Description |
---|---|
String |
get(opennlp.tools.util.StringList key)
Returns a corresponding String value from hash map.
|
void |
put(opennlp.tools.util.StringList key,
String value)
Adds a new entry to hash map.
|
void |
serialize(OutputStream out)
Writes the ngram instance to the given
OutputStream . |
public StringDictionary()
public StringDictionary(InputStream in) throws IOException
in
- IOException
public String get(opennlp.tools.util.StringList key)
key
- key to get value withpublic void put(opennlp.tools.util.StringList key, String value)
key
- key to putvalue
- value to putpublic void serialize(OutputStream out) throws IOException
OutputStream
.out
- IOException
- if an I/O Error during writing occuresCopyright © 2021 The Apache Software Foundation. All rights reserved.