check_analogy_accuracy
From text2vec v0.3.0
by Dmitriy Selivanov
Checks accuracy of word embeddings on the analogy task
This function checks how well the GloVe word embeddings do on the analogy task. For full examples see glove.
Usage
check_analogy_accuracy(questions_list, m_word_vectors, verbose = TRUE)
Arguments
- questions_list
list
of questions. Each element ofquestions_list
is ainteger matrix
with four columns. It represents a set of questions related to a particular category. Each element of matrix is an index of a row inm_word_vectors
. See output of prepare_analogy_questions for details- m_word_vectors
- word vectors
numeric matrix
. Each row should represent a word. - verbose
logical
whether to print messages during evaluation.
See Also
Community examples
Looks like there are no examples yet.