We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
require(quanteda) #> Loading required package: quanteda #> Warning in .recacheSubclasses(def@className, def, env): undefined subclass #> "packedMatrix" of class "replValueSp"; definition not updated #> Warning in .recacheSubclasses(def@className, def, env): undefined subclass #> "packedMatrix" of class "mMatrix"; definition not updated #> Package version: 3.2.1 #> Unicode version: 13.0 #> ICU version: 69.1 #> Parallel computing: 8 of 8 threads used. #> See https://quanteda.io for tutorials and examples. require(quanteda.textmodels) #> Loading required package: quanteda.textmodels toks <- tokens(data_corpus_inaugural) dfmt <- dfm(toks) lsa1 <- textmodel_lsa(dfmt, margin = "document") pred1 <- predict(lsa1) lsa2 <- textmodel_lsa(dfmt, margin = "features") pred2 <- predict(lsa2) #> Error in newdata %*% object$features: not-yet-implemented method for <dgCMatrix> %*% <NULL>
Created on 2022-05-20 by the reprex package (v2.0.1)
I think $features should be $docs for margin = "features".
$features
$docs
margin = "features"
quanteda.textmodels/R/textmodel_lsa.R
Line 123 in 17f1c84
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Created on 2022-05-20 by the reprex package (v2.0.1)
I think
$features
should be$docs
formargin = "features"
.quanteda.textmodels/R/textmodel_lsa.R
Line 123 in 17f1c84
The text was updated successfully, but these errors were encountered: