powered by
Convert a formula to a named character vector in analogy tasks.
analogy(formula)
a named character vector to be passed to similarity().
similarity()
a formula object that defines the relationship between words using + or - operators.
+
-
analogy(~ berlin - germany + france) analogy(~ quick - quickly + slowly)
Run the code above in your browser using DataLab