sum_wordvec {PsychWordVec} | R Documentation |
Calculate the sum vector of multiple words.
Description
Calculate the sum vector of multiple words.
Usage
sum_wordvec(data, x = NULL, verbose = TRUE)
Arguments
data |
A |
x |
Can be:
|
verbose |
Print information to the console? Defaults to |
Value
Normalized sum vector.
Download
Download pre-trained word vectors data (.RData
):
https://psychbruce.github.io/WordVector_RData.pdf
See Also
Examples
sum_wordvec(normalize(demodata), ~ king - man + woman)
[Package PsychWordVec version 2023.9 Index]