R: tidytext: word-combinations Tokenizing by n-gram
# Ref: https://github.com/dgrtwo/tidy-text-mining/blob/master/04-word-combinations.Rmd library(knitr) opts_chunk$set(message = FALSE, warning = FALSE, cache = TRUE) options(width = 100, dplyr.width = 100) library(ggplot2) theme_set(theme_light()) ## Tokenizing by n-gram library(dplyr) library(tidytext) library(janeaustenr) austen_bigrams <- austen_books() %>% unnest_tokens(bigram, text, token =
| Penerbit | Taratsa |
|---|---|
| Tahun | 2019-12-03 |
| Bahasa | ind |
| Pengenal | bookid: urn:uuid:ea68704c-4386-5a9c-910c-eb76d6d20e4a |
Tentang teks
956 kata · sekitar 5 menit baca · lebih panjang dari 51% buku di pustaka ini
Paling sering muncul
- bigrams28
- bigram25
- filter22
- library19
- geom16
- count13
- true12
- aes11
- austen11
- sort10
- idf9
- afinn8
Khas buku ini
Sering di buku ini, jarang di buku lain.
- bigrams28
- bigram25
- geom16
- austen11
- filter22
- afinn8
- idf9
- ggraph7
- aes11
- ggplot8
- count13
- library19
Frasa yang berulang
- sort true
- geom node
- bigram tf idf
- node text aes
- legend false
- layout fr geom
- geom edge link
- bigrams separated filter