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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WordVectorTableparse(InputStream in)Parses a glove vector plain text file.
-
-
-
Method Detail
-
parse
@Experimental public static WordVectorTable parse(InputStream in) throws IOException
Parses a glove vector plain text file.- Parameters:
in- A valid, openInputStreamto Glove vectors from.- Returns:
- A Glove based
WordVectorTable, guaranteed to be nonnull. - Throws:
IOException- if any error occurs during parsing
-
-