Pustaka Taratsa
R: tidytext: tf-idf Jane Austen novels

R: tidytext: tf-idf Jane Austen novels

Penulis: Onno Widodo Purbo

# 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 <-

Tentang teks

305 kata · sekitar 2 menit baca · lebih panjang dari 30% buku di pustaka ini

Paling sering muncul

  1. book23
  2. rank14
  3. false6
  4. ggplot6
  5. library6
  6. log6
  7. tf-idf6
  8. total6
  9. freq5
  10. geom5
  11. idf5
  12. aes4

Khas buku ini

Sering di buku ini, jarang di buku lain.

  1. book23
  2. rank14
  3. tf-idf6
  4. ggplot6
  5. idf5
  6. geom5
  7. austen4
  8. freq5
  9. false6
  10. aes4
  11. tidytext3
  12. legend4

Frasa yang berulang

  • freq by rank
  • term frequency
  • legend false
  • book geom
  • rank subset
  • jane austen
  • ggplot aes

Buku serupa

Dipilih dari kemiripan kata-kata khas di dalam teks.