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