top_Sentiments: Get the top 10 negative and positive words
Description
This function returns the top 10 positive and negative words expressed in a text.
By defaults a data frame of words classified as positive or negative based on weights.
Usage
top_Sentiments(word_vec, plot)
Arguments
word_vec
This is the corpus you want to extract the sentiments from
plot
(TRUE/FALSE) TRUE means you want to return a plot which you can further customize. FALSE means a dataframe will be returned
Value
a data frame object if plot is FALSE. a ggplot object if plot = TRUE