calc_doc_lengths: Calculate document sizes

Description Usage Arguments Value See Also Examples

Description

Computes the number of words in each document that are read via read_docs.

Usage

1

Arguments

docs

a list of documents

Value

a list of document lengths

See Also

Other lda data preprocessing methods: read_docs, vectorize_docs

Examples

1
2
3
documents <- read_docs('bop.ldac');
ds <- vectorize_docs(documents);
doc.N <- calc_doc_lengths(documents)

clintpgeorge/clda documentation built on May 13, 2019, 8 p.m.