Description Usage Arguments Value Author(s) Examples
Clean text and build term matrix for bag of words model or TF DFI.
1 | BalanceData(dataset)
|
dataset |
unbalanced dataset, a dataframe : two column: first text reviews and second binary class, label: negative =0 and positive=1. |
balanced_dataframe balanced dataframe containing two columns: review texts and binary class , label: negative =0 and positive=1.
A balanced dataframe
Zahra Khoshmanesh
1 2 3 4 5 6 | ## Not run:
library("SentiAnalyzer")
direction <- system.file(package = "SentiAnalyzer", "extdata/Imbalance_Restaurant_Reviews.tsv")
imbalance_data<- read.delim(direction,quote='',stringsAsFactors = FALSE)
BalanceData(imbalance_data)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.