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
library(polmineR) speeches <- corpus("GERMAPARL2") %>% subset(as.integer(protocol_lp) %in% 18:21) %>% as.speeches( s_attribute_name = "speaker_name", gap = 50, # gap is 500 by default mc = cores_to_use ) # works parties <- s_attributes(speeches, "speaker_party") %>% unlist() %>% tibble(doc = names(.), party = unname(.)) %>% select(party, subcorpus) # fails dates <- s_attributes(speeches, "protocol_date") %>% unlist() %>% tibble(doc = names(.), date = unname(.)) %>% select(party, date)
The text was updated successfully, but these errors were encountered:
This is identical with: #283 (comment) The solution for #283 also solves this issue.
Sorry, something went wrong.
This code actually works (and demonstrates that the issue is solved).
library(polmineR) library(dplyr) speeches <- corpus("GERMAPARL2") %>% subset(as.integer(protocol_lp) %in% 18:21) %>% as.speeches( s_attribute_name = "speaker_name", gap = 50, # gap is 500 by default mc = cores_to_use ) # works parties <- s_attributes(speeches, "speaker_party") %>% unlist() %>% tibble(doc = names(.), party = unname(.)) %>% select(party, doc) # fails dates <- s_attributes(speeches, "protocol_date") %>% unlist() %>% tibble(name = names(.), date = unname(.)) %>% select(name, date)
No branches or pull requests
The text was updated successfully, but these errors were encountered: