Skip to content

Instantly share code, notes, and snippets.

@kushalchauhan98
Created August 2, 2018 14:09
Show Gist options
  • Save kushalchauhan98/7334e7ab56ffa7423dacf02922735be0 to your computer and use it in GitHub Desktop.
Save kushalchauhan98/7334e7ab56ffa7423dacf02922735be0 to your computer and use it in GitHub Desktop.
Skip-Thought Encoder
# The 'skipthoughts' module can be found at the root of the GitHub repository linked above
import skipthoughts
# You would need to download pre-trained models first
model = skipthoughts.load_model()
encoder = skipthoughts.Encoder(model)
encoded = encoder.encode(sentences)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment