analogy {wordvector} | R Documentation |
Convert formula to named character vector
Description
Convert a formula to a named character vector in analogy tasks.
Usage
analogy(formula)
Arguments
formula |
a formula object that defines the relationship between words
using |
Value
a named character vector to be passed to similarity()
.
See Also
Examples
analogy(~ berlin - germany + france)
analogy(~ quick - quickly + slowly)
[Package wordvector version 0.5.1 Index]