Skip to content

Instantly share code, notes, and snippets.

View Elfsong's full-sized avatar
😃
Excelsior

Mingzhe Elfsong

😃
Excelsior
View GitHub Profile
@namakemono
namakemono / esim.py
Last active February 19, 2020 08:31
Implementation of ESIM(Enhanced LSTM for Natural Language Inference)
"""
Implementation of ESIM(Enhanced LSTM for Natural Language Inference)
https://arxiv.org/abs/1609.06038
"""
import numpy as np
from keras.layers import *
from keras.activations import softmax
from keras.models import Model
def StaticEmbedding(embedding_matrix):