Last active
February 6, 2019 09:50
-
-
Save prateekjoshi565/2640c799ea255505be35af2c16db72e3 to your computer and use it in GitHub Desktop.
Data preparation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# prepare training data | |
trainX = encode_sequences(deu_tokenizer, deu_length, train[:, 1]) | |
trainY = encode_sequences(eng_tokenizer, eng_length, train[:, 0]) | |
# prepare validation data | |
testX = encode_sequences(deu_tokenizer, deu_length, test[:, 1]) | |
testY = encode_sequences(eng_tokenizer, eng_length, test[:, 0]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment