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.
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.