# load example word embeddings
data(ft_wv_sample)
df_anchors <- data.frame(
a = c("rest", "rested", "stay", "stand"),
z = c("coming", "embarked", "fast", "move")
)
test_anchors(df_anchors, ft_wv_sample)
test_anchors(df_anchors, ft_wv_sample, all = TRUE)
Run the code above in your browser using DataLab