word_ids: Get numeric word indices

word_idsR Documentation

Get numeric word indices

Description

This shortcut function returns the numeric indices of specific words in the model's vocabulary (corresponding to column indices in the topic-word matrix).

Usage

word_ids(m, words)

Arguments

m

a mallet_model object

words

character vector of words to find indices of

Value

numeric vector of indices into the vocabulary


agoldst/dfrtopics documentation built on July 15, 2022, 4:13 p.m.