Skip to content

Instantly share code, notes, and snippets.

@zeutrap
zeutrap / lstm-lm.py
Created January 14, 2016 15:45 — forked from neubig/lstm-lm.py
This is a minimal implementation of training for a language model using long short-term memory (LSTM) neural networks
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# This is a simplified implementation of the LSTM language model (by Graham Neubig)
#
# LSTM Neural Networks for Language Modeling
# Martin Sundermeyer, Ralf Schlüter, Hermann Ney
# InterSpeech 2012
#
# The structure of the model is extremely simple. At every time step we