Skip to content
New issue

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

seededlda:::tfm errors if there is x in docvars #87

Open
koheiw opened this issue Aug 22, 2024 · 0 comments
Open

seededlda:::tfm errors if there is x in docvars #87

koheiw opened this issue Aug 22, 2024 · 0 comments

Comments

@koheiw
Copy link
Owner

koheiw commented Aug 22, 2024

> require(quanteda)
> dict <- dictionary(list('A' = "a"))
> dat <- data.frame(text = c("a b c", "A B C"), x = c(1, 2))
> corp <- corpus(dat)
> toks <- tokens(corp)
> dfmt <- dfm(toks)
> seededlda:::tfm(dfmt, dict)
Error: ndoc() only works on corpus, dfm, spacyr_parsed, tokens, tokens_xptr objects.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant