Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. import skipthoughts
  2.  
  3. # You would need to download pre-trained models first
  4. model = skipthoughts.load_model()
  5.  
  6. encoder = skipthoughts.Encoder(model)
  7. encoded = encoder.encode(sentences)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement