Package opennlp.tools.util.wordvector
Class Glove
java.lang.Object
opennlp.tools.util.wordvector.Glove
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 TypeMethodDescriptionstatic WordVectorTable
parse
(InputStream in) Parses a glove vector plain text file.
-
Method Details
-
parse
Parses a glove vector plain text file.- Parameters:
in
- A valid, openInputStream
to Glove vectors from.- Returns:
- A Glove based
WordVectorTable
, guaranteed to be nonnull
. - Throws:
IOException
- if any error occurs during parsing
-