Pustaka Taratsa
R: trigram

R: trigram

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_trigrams <- text %>% unnest_tokens(trigram, text, token = "ngrams", n = 3) text_trigrams trigrams_separated <- text_trigrams %>% separate(trigram, c("word1", "word2", "word3"), sep = " ") # stopwords Indonesia trigrams_filtered <-