Created
August 2, 2018 14:09
-
-
Save kushalchauhan98/7334e7ab56ffa7423dacf02922735be0 to your computer and use it in GitHub Desktop.
Skip-Thought Encoder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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