opennlp.uima.normalizer
Class StringDictionary
java.lang.Object
opennlp.uima.normalizer.StringDictionary
public class StringDictionary
- extends Object
StringDictionary
public StringDictionary()
StringDictionary
public StringDictionary(InputStream in)
throws IOException,
opennlp.tools.util.InvalidFormatException
- Initializes the current instance.
- Parameters:
in
-
- Throws:
IOException
opennlp.tools.util.InvalidFormatException
get
public String get(opennlp.tools.util.StringList key)
put
public void put(opennlp.tools.util.StringList key,
String value)
serialize
public void serialize(OutputStream out)
throws IOException
- Writes the ngram instance to the given
OutputStream
.
- Parameters:
out
-
- Throws:
IOException
- if an I/O Error during writing occures
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.