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) |
void |
put(opennlp.tools.util.StringList key,
String value) |
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)
public void put(opennlp.tools.util.StringList key, String value)
public void serialize(OutputStream out) throws IOException
OutputStream
.out
- IOException
- if an I/O Error during writing occuresCopyright © 2017 The Apache Software Foundation. All rights reserved.