Skip to content

Instantly share code, notes, and snippets.

@Angel0726
Angel0726 / snli_lstm_with_w2v.py
Created June 27, 2018 04:24 — forked from namakemono/snli_lstm_with_w2v.py
Trains a LSTM with Word2Vec on the SNLI dataset.
"""Trains a LSTM with Word2Vec on the SNLI dataset.
https://nlp.stanford.edu/projects/snli/
Get to 80.12% test accuracy after 18 epochs.
"""
import numpy as np
import pandas as pd
from gensim.models import KeyedVectors