if (FALSE) {
use("polmineR")
speeches <- as.speeches(
"GERMAPARLMINI",
s_attribute_date = "date", s_attribute_name = "speaker"
)
speeches_count <- count(speeches, p_attribute = "word")
tdm <- as.TermDocumentMatrix(speeches_count, col = "count")
bt <- partition("GERMAPARLMINI", date = "2009-10-27")
speeches <- as.speeches(
bt,
s_attribute_name = "speaker",
s_attribute_date = "date"
)
summary(speeches)
}
if (FALSE) {
#' sp <- corpus("GERMAPARLMINI") %>%
as.speeches(s_attribute_name = "speaker", s_attribute_date = "date")
sp <- corpus("GERMAPARLMINI") %>%
as.speeches(
s_attribute_name = "speaker",
s_attribute_date = "date",
subset = {date == as.Date("2009-11-11")},
progress = FALSE
)
sp <- corpus("GERMAPARLMINI") %>%
as.speeches(
s_attribute_name = "speaker",
s_attribute_date = "date",
subset = {date == "2009-11-10" & grepl("Merkel", speaker)},
progress = FALSE
)
}
Run the code above in your browser using DataLab