predict_polarity_keras: Predict polarity for the given dataset.

Description Arguments Value Examples

Description

Predict polarity for the given dataset and filters using the pre-trained Keras LSTM model.

Arguments

data

the sentiment140 test text for text of the tweet.

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.

Value

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.

Examples

1
2
library(deepSentimentR)
predict_polarity_keras()

adityamangal410/deepSentimentR documentation built on June 3, 2019, 6:15 p.m.