Description Arguments Value Examples
Predict polarity for the given dataset and filters using the pre-trained Keras LSTM model.
data |
the sentiment140 test |
user_list |
a vector of users for which to filter the dataset |
start_date_time |
input start_date_time in POSIXct format on which to filter the dataset |
end_date_time |
input end_date_time in POSIXct format on which to filter the dataset |
keyword_list |
a list of string keywords on which to filter the dataset |
maxlen |
Maximum length of a sequence. |
max_words |
Maximum number of words to consider using word frequency measure. |
trained_data |
Training dataset. |
model_load_path |
File path location of the trained model file. |
a list object with raw
filtered dataframe, predictions
dataframe that holds the predicted polarity using the model, confusion_matrix
, multiple model performance statistics and a plot
comparing the actual and predicted polarity.
1 2 | library(deepSentimentR)
predict_polarity_keras()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.