corpora_dictionary: Create a dictionary

Description Usage Arguments Examples

View source: R/corpora.R

Description

Create a dictionary from a list of documents.

Usage

1

Arguments

docs

A list of documents as returned by prepare_documents.

file

Path to save .dict, If NULL the dictionary is not saved.

Examples

1
2
docs <- prepare_documents(corpus)
(dict <- corpora_dictionary(docs))

news-r/gensimr documentation built on Jan. 9, 2021, 5:55 a.m.