R: tidytext: tf-idf Jane Austen novels
# Ref: https://github.com/dgrtwo/tidy-text-mining/blob/master/03-tf-idf.Rmd library(knitr) opts_chunk$set(message = FALSE, warning = FALSE, cache = TRUE) options(width = 100, dplyr.width = 100) library(ggplot2) theme_set(theme_light()) library(dplyr) library(janeaustenr) library(tidytext) book_words <- austen_books() %>% unnest_tokens(word, text) %>% count(book, word, sort = TRUE) total_words <-
| Penerbit | Taratsa |
|---|---|
| Tahun | 2019-12-03 |
| Bahasa | ind |
| Pengenal | bookid: urn:uuid:87d626f6-c726-5a1e-b1da-dc1210e3aee0 |
Tentang teks
305 kata · sekitar 2 menit baca · lebih panjang dari 30% buku di pustaka ini
Paling sering muncul
- book23
- rank14
- false6
- ggplot6
- library6
- log6
- tf-idf6
- total6
- freq5
- geom5
- idf5
- aes4
Khas buku ini
Sering di buku ini, jarang di buku lain.
- book23
- rank14
- tf-idf6
- ggplot6
- idf5
- geom5
- austen4
- freq5
- false6
- aes4
- tidytext3
- legend4
Frasa yang berulang
- freq by rank
- term frequency
- legend false
- book geom
- rank subset
- jane austen
- ggplot aes