Package opennlp.uima.normalizer
Class StringDictionary
- java.lang.Object
- 
- opennlp.uima.normalizer.StringDictionary
 
- 
 public class StringDictionary extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description StringDictionary()StringDictionary(InputStream in)Initializes the current instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringget(opennlp.tools.util.StringList key)Returns a corresponding String value from hash map.voidput(opennlp.tools.util.StringList key, String value)Adds a new entry to hash map.voidserialize(OutputStream out)Writes the ngram instance to the givenOutputStream.
 
- 
- 
- 
Constructor Detail- 
StringDictionarypublic StringDictionary() 
 - 
StringDictionarypublic StringDictionary(InputStream in) throws IOException Initializes the current instance.- Parameters:
- in-
- Throws:
- IOException
 
 
- 
 - 
Method Detail- 
getpublic String get(opennlp.tools.util.StringList key) Returns a corresponding String value from hash map.- Parameters:
- key- key to get value with
 
 - 
putpublic void put(opennlp.tools.util.StringList key, String value)Adds a new entry to hash map.- Parameters:
- key- key to put
- value- value to put
 
 - 
serializepublic void serialize(OutputStream out) throws IOException Writes the ngram instance to the givenOutputStream.- Parameters:
- out-
- Throws:
- IOException- if an I/O Error during writing occures
 
 
- 
 
-