dselivanov / text2vec

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

as(<dgTMatrix>, "dgCMatrix") is deprecated #336

Closed EmilHvitfeldt closed 1 year ago

EmilHvitfeldt commented 1 year ago

Hello @dselivanov 👋 I found this deprecation warning, and it didn't have its own issue so I opened one for you

library(text2vec)

it <- itoken(letters)
vectorizer <- hash_vectorizer()
dtm <- create_dtm(it, vectorizer)
#> as(<dgTMatrix>, "dgCMatrix") is deprecated since Matrix 1.5-0; do as(., "CsparseMatrix") instead

Created on 2022-11-29 with reprex v2.0.2