similarity_to_centroid: Compute the similarity of each word in the dictionary to the...

View source: R/coherence.R

similarity_to_centroidR Documentation

Compute the similarity of each word in the dictionary to the centroid

Description

Can be useful to find words that don't seem to belong in the dictionary

Usage

similarity_to_centroid(dictionary, vectors)

Arguments

dictionary

a character vector of words

vectors

A vectors object, e.g. as returned by load_fasttext

Value

a long-format tibble containing columns word and dist


vanatteveldt/CAVA documentation built on June 4, 2022, 1:20 p.m.