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
# Code for https://www.data-blogger.com/2017/12/14/create-a-character-based-seq2seq-using-python-and-tensorflow/ | |
# Imports | |
import tensorflow as tf | |
import pandas as pd | |
from nltk import word_tokenize | |
from collections import Counter | |
import numpy as np | |
# Load the data |
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
#%% (0) Important libraries | |
import tensorflow as tf | |
import numpy as np | |
from numpy import random | |
import matplotlib.pyplot as plt | |
from IPython import display | |
% matplotlib inline | |
#%% (1) Dataset creation. |