Package opennlp.tools.util.wordvector

# Class Glove

java.lang.Object
opennlp.tools.util.wordvector.Glove

@Experimental public class Glove extends Object
GloVe is an unsupervised learning algorithm for obtaining vector representations for words. Details are found on this web site.

Warning: Experimental new feature, see OPENNLP-1144 for details, the API might be changed anytime.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static opennlp.tools.util.wordvector.WordVectorTable`
  `parse(InputStream in)`
  Parses a glove vector plain text file.

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

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

- ## Method Details

  - ### parse

    @Experimental public static opennlp.tools.util.wordvector.WordVectorTable parse(InputStream in) throws IOException
    Parses a glove vector plain text file.

    Parameters:
      `in` - A valid, open `InputStream` to Glove vectors from.
    Returns:
      A Glove based `WordVectorTable`, guaranteed to be non `null`.
    Throws:
      `IOException` - if any error occurs during parsing