dselivanov / text2vec

Fast vectorization, topic modeling, distances and GloVe word embeddings in R.
http://text2vec.org
Other
848 stars 135 forks source link

Errors when running in text2vec - analyzing texts #338

Open socgts opened 1 year ago

socgts commented 1 year ago

Hello!

When running the code from https://cran.r-project.org/web/packages/text2vec/vignettes/text-vectorization.html , i encounter the following errors ( text2vec_0.6.3 ): dtm_train_l1_norm = normalize(dtm_train, "l1") with the error: Error in h(simpleError(msg, call)) : error in evaluating the argument 'x' in selecting a method for function 'colSums': 'rowScale' is not an exported object from 'namespace:Matrix' and dtm_train_tfidf = fit_transform(dtm_train, tfidf) with the error: Error in h(simpleError(msg, call)) : error in evaluating the argument 'x' in selecting a method for function 'colSums': 'rowScale' is not an exported object from 'namespace:Matrix'

dselivanov commented 1 year ago

Thanks for reporting. I think we need to update Matrix package dependency to Matrix >= 1.5-2. Please update the Matrix package and try once again.

On Tue, Feb 14, 2023 at 9:40 PM Sokratis Goutsias @.***> wrote:

Hello!

When running the code from https://cran.r-project.org/web/packages/text2vec/vignettes/text-vectorization.html , i encounter the following errors: dtm_train_l1_norm = normalize(dtm_train, "l1") with the error: Error in h(simpleError(msg, call)) : error in evaluating the argument 'x' in selecting a method for function 'colSums': 'rowScale' is not an exported object from 'namespace:Matrix' and dtm_train_tfidf = fit_transform(dtm_train, tfidf) with the error: Error in h(simpleError(msg, call)) : error in evaluating the argument 'x' in selecting a method for function 'colSums': 'rowScale' is not an exported object from 'namespace:Matrix'

— Reply to this email directly, view it on GitHub https://github.com/dselivanov/text2vec/issues/338, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHC5XKDJFR4H5ASNTOJ433WXODMBANCNFSM6AAAAAAU3SNKYU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Regards Dmitriy Selivanov

socgts commented 1 year ago

No errors when using Matrix_1.5-3