opennlp.uima.normalizer
Class StringDictionary

java.lang.Object
  extended by opennlp.uima.normalizer.StringDictionary

public class StringDictionary
extends Object


Constructor Summary
StringDictionary()
           
StringDictionary(InputStream in)
          Initializes the current instance.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.