bmschmidt / wordVectors

An R package for creating and exploring word2vec and other word embedding models
Other
280 stars 78 forks source link

Allow variables in formulas #31

Open bmschmidt opened 7 years ago

bmschmidt commented 7 years ago

For testing quantities, it would be nice to allow variables.

Currently, this code fails because Error in tree[[1]] : object of type 'symbol' is not subsettable. Looks like a parse error, not a namespace one, so should be an easy fix.

dist = 1.2
form = ~ "king" + dist * ("woman" - "man")
glove %>% closest_to(form)