Skip to content

Instantly share code, notes, and snippets.

@mikkokotila
Created February 21, 2019 12:49
Show Gist options
  • Save mikkokotila/ad0138788c93bef2b71eaccc9c95701b to your computer and use it in GitHub Desktop.
Save mikkokotila/ad0138788c93bef2b71eaccc9c95701b to your computer and use it in GitHub Desktop.
import signs as signs
import pandas as pd
# load some text
df = pd.read_csv('tweets.csv').text
# load vectors
e = signs.Embeds("glove.twitter.27B.25d.txt")
# get Keras embeddings layer
embedding_layer, x = e.layer(docs)
# evaluate results after training a Keras model
preds = signs.Preds(x_val, y_val, e.word_index, model)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment