Package opennlp.tools.util.featuregen

# Class WordClusterDictionary

java.lang.Object
opennlp.tools.util.featuregen.WordClusterDictionary

All Implemented Interfaces:
  `opennlp.tools.util.model.SerializableArtifact`

public class WordClusterDictionary extends Object implements opennlp.tools.util.model.SerializableArtifact

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static class`
  `WordClusterDictionary.WordClusterDictionarySerializer`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `WordClusterDictionary(InputStream in)`
  Read word2vec and clark clustering style lexicons.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Class<?>`
  `getArtifactSerializerClass()`
  `String`
  `lookupToken(String string)`
  `void`
  `serialize(OutputStream out)`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### WordClusterDictionary

    public WordClusterDictionary(InputStream in) throws IOException
    Read word2vec and clark clustering style lexicons.
    Parameters:
      `in` - the `InputStream` to read from.
    Throws:
      `IOException` - Thrown if IO errors occurred during read.

- ## Method Details

  - ### lookupToken

    public String lookupToken(String string)

  - ### serialize

    public void serialize(OutputStream out) throws IOException
    Throws:
      `IOException`

  - ### getArtifactSerializerClass

    public Class<?> getArtifactSerializerClass()
    Specified by:
      `getArtifactSerializerClass` in interface `opennlp.tools.util.model.SerializableArtifact`