Run given keras model to make predictions on the given subset of data

get_predictions(data, maxlen, model_load_path, trained_data, max_words)

Arguments

data

Given subset of data to make predictions on.

maxlen

Maximum length of a sequence.

model_load_path

File path location of the trained model file.

trained_data

Training dataset.

max_words

Maximum number of words to consider using word frequency measure.

Value

Given subset of data appended with pred_polarity column for predicted values.