
Find the 'rejection matrix' from a semantic vector
Source:R/utils-embedding-matrices.R
find_rejection.Rd"Reject" each word in a word embedding matrix of \(D\) dimension
from a vector of \(D\) dimensions, extracted from the same
embedding space. The vector can be a single word, or a concept
vector obtained from get_centroid(), get_direction(),
or get_regions().
Examples
# \donttest{
data(ft_wv_sample)
vec <- ft_wv_sample["space", ]
rej <- find_rejection(wv = ft_wv_sample, vec = vec)
# }