Pustaka Taratsa
R: bigram

R: bigram

Penulis: Onno Widodo Purbo

library(dplyr) library(tidytext) library(janeaustenr) library(tidyr) library(igraph) library(ggplot2) library(ggraph) library(readtext) text <- readtext("out.txt") text_bigrams <- text %>% unnest_tokens(bigram, text, token = "ngrams", n = 2) text_bigrams bigrams_separated <- text_bigrams %>% separate(bigram, c("word1", "word2"), sep = " ") # # stopwords default bigrams_filtered <-