In [ ]:
from __future__ import print_function
import sys
sys.path.append('../')
In [3]:
import whatstk.parser as wp
Still in development
In [5]:
# load group chat
chat = wp.WhatsAppChat("../chats/samplechat.txt")
# choose user to emulate
user = 'Ash Ketchum'
#text_characters = chat.get_text(user, characters = True)
Next, we initialize the RNN object using the retrieved data from the text.
In [8]:
from whatstk.learn.rnn import RNN, read_data
rnn = RNN(l, n_hidden_states=100)
Time to train!
In [ ]:
smooth_loss, iters, generated_sequences = rnn.generate_sequence()