interpret_word: Interpret word

Description Usage Arguments

View source: R/interpret_word.R

Description

Outputs information on the frequency and context of a word in documents analyzed by a topic model

Usage

1
2
interpret_word(word, tkd_texts, doc_term_mtrx, stemmed_texts = NULL,
  summary = TRUE, custom_stem = NULL)

Arguments

word

The word to be interpreted.

tkd_texts

The tokenized texts used to create the document-term matrix.

doc_term_mtrx

A document-term matrix summarizing the content of tkd_texts.

stemmed_texts

If the texts were stemmed, this should be the stemmed and tokenized texts, otherwise NULL.

summary

Logical: Should only a summary be printed, or all information returned?

custom_stem

A character containing the regex pattern to match if word is a custom stem.


dtburk/texanaaid documentation built on Nov. 12, 2019, 9:44 p.m.