Skip to content

Instantly share code, notes, and snippets.

View Elfsong's full-sized avatar
😃
Excelsior

游刃 Elfsong

😃
Excelsior
View GitHub Profile
@Elfsong
Elfsong / esim.py
Created May 18, 2019 02:46 — forked from namakemono/esim.py
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):