Skip to content

Instantly share code, notes, and snippets.

@alaakh42
alaakh42 / keras_gensim_embeddings.py
Created October 9, 2017 15:31 — forked from codekansas/keras_gensim_embeddings.py
Using Word2Vec embeddings in Keras models
from __future__ import print_function
import json
import os
import numpy as np
from gensim.models import Word2Vec
from gensim.utils import simple_preprocess
from keras.engine import Input
from keras.layers import Embedding, merge