Generate training data

generate_training_data(data, sequences, maxlen, seed)

Arguments

data

Input data.

sequences

sequences generated by using tokenizer on text

maxlen

Maximum length of a sequence.

seed

Seed for shuffling data

Value

List object with x_train and y_train objects.