Skip to content

allow sparsity reduction of tf-idf weighted dfm #1237

@hlageek

Description

@hlageek

Currently, it is possible to perform dfm_trim() on dfm object and then add tf-idf weights, however, when I want to add tf-idf weights first by using all terms for tf-idf calculations and only then reduce the sparsity of the matrix, I get Error in docfreq.dfm(x) : this dfm has already been term weighted as:inverse10.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions