powered by
This function is used to get the top N bigrams from a corpus. It will retrieve the most occurring two combinations based on frequency
top_bigrams(word_vec, remove_these, bigram_size)
This is the corpus you want to extract the sentiments from
This is a vector of characters you want cleaned out of the text
This is the Top N number of rows to be retrieved as an integer value
a data frame object.
# NOT RUN { { top_bigrams(brexit[, c("content")], remove_these = c("rt"), bigram_size = 20) } # }
Run the code above in your browser using DataLab