Skip to content

Instantly share code, notes, and snippets.

@anujdutt9
Last active April 13, 2017 17:26
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 anujdutt9/b3ab604b5fa79e45eea43548f50cf133 to your computer and use it in GitHub Desktop.
Save anujdutt9/b3ab604b5fa79e45eea43548f50cf133 to your computer and use it in GitHub Desktop.
# Recurrent Neural Network based Language Model
# Aim: To train the NN so that it can generate random text using words from Vocabulary which is
# grammatically correct and makes some sense.
# The vocabulary is made using the input raw text data
# Import Dependencies
import os
import sys
import csv
import itertools
import operator
import numpy as np
import pickle
import nltk
from nltk import sent_tokenize, word_tokenize, FreqDist
from utils import *
import matplotlib.pyplot as plt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment