Hello. I have a problem with this code.
library(ggplot2)
library(magrittr)
library(dplyr)
library(tidytext)
library(gutenbergr)
TTLutS_.ted=gutenberg_download(164, mirror = "something")
Ulysses_.ted=gutenberg_download(4300, mirror = "something")
TTLutS=tibble(lines = 1:12135, text = TTLutS_.ted)
Ulysses=tibble(lines = 1:32834, text = Ulysses_.ted)
TTLutS.words <- TTLutS %>% unnest_tokens(word, text)
Ulysses.words <- Ulysses %>% unnest_tokens(word, text)
TTLutS.words %>% count(word, sort = TRUE)
Ulysses.words %>% count(word, sort = TRUE)
When I try to rate this, I have this error.
Błąd w poleceniu 'is_corpus_df(corpus)':
all(names(corpus)[1L:2L] == c("doc_id", "text")) is not TRUE
I don't know how to fix this.