Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created February 6, 2019 09:21
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 prateekjoshi565/559b71b87108c74b96597cee99ae0447 to your computer and use it in GitHub Desktop.
Save prateekjoshi565/559b71b87108c74b96597cee99ae0447 to your computer and use it in GitHub Desktop.
import libraries for Machine Translation
import string
import re
from numpy import array, argmax, random, take
import pandas as pd
from keras.models import Sequential
from keras.layers import Dense, LSTM, Embedding, RepeatVector
from keras.preprocessing.text import Tokenizer
from keras.callbacks import ModelCheckpoint
from keras.preprocessing.sequence import pad_sequences
from keras.models import load_model
from keras import optimizers
import matplotlib.pyplot as plt
% matplotlib inline
pd.set_option('display.max_colwidth', 200)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment