Skip to content

Instantly share code, notes, and snippets.

@ferrygun
Created June 8, 2020 10:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ferrygun/1f1472125bb46ebd8e509c2ea3f13581 to your computer and use it in GitHub Desktop.
Save ferrygun/1f1472125bb46ebd8e509c2ea3f13581 to your computer and use it in GitHub Desktop.
label_tokenizer = Tokenizer()
label_tokenizer.fit_on_texts(labels)
training_label_seq = np.array(label_tokenizer.texts_to_sequences(train_labels))
validation_label_seq = np.array(label_tokenizer.texts_to_sequences(validation_labels))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment