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

Unable to create a DocumentTermMatrix for MIGPARL #250

Open
dschuele opened this issue May 31, 2023 · 0 comments
Open

Unable to create a DocumentTermMatrix for MIGPARL #250

dschuele opened this issue May 31, 2023 · 0 comments

Comments

@dschuele
Copy link

polmineR 0.8.8 is unable to create a DocumentTermMatrix for the MIGPARL corpus and returns this error message
"Error in h(simpleError(msg, call)) :
error in evaluating the argument 'x' in selecting a method for function 'as.DocumentTermMatrix': 'nrow, ncol' invalid"
The same code works fine for the GERMAPARL corpus.

library(polmineR)

dtm1 <- subset("GERMAPARL",
               party = "parteilos") |>
  split(s_attribute = "date") |>
  split(s_attribute = "speaker") |>
  as.DocumentTermMatrix(p_attribute = "word")

dtm2 <- subset("MIGPARL",
              party = "parteilos") |>
  split(s_attribute = "date") |>
  split(s_attribute = "speaker") |>
  as.DocumentTermMatrix(p_attribute = "word")
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