eval_bow: Compute bag of words metrics

Description Usage Arguments Value Author(s) See Also

View source: R/eval_bow.R

Description

Compute basic metrics for a bag of words.

Usage

1
eval_bow(bow, document = "document", term = "term", count = "count")

Arguments

bow

Tibble. Bag of words produced with create_bow.

document

Character string. Name of the variable indicating the document id.

term

Character string. Name of the variable indicating the term.

count

Character string. Name of the variable indicating the frequence.

Value

A tibble 9 variables: document, term, count, doc_word_count (number of words in the document), term_count (frequency of the term), term_document_count (number of documents in which the term appears), tf, idf, tf_idf.

Author(s)

Nicolas Mangin

See Also

create_bow


NicolasJBM/lexR documentation built on Feb. 4, 2021, 6:43 p.m.