Skip to content

Instantly share code, notes, and snippets.

@mino98
mino98 / crash.py
Created January 24, 2018 12:16
Crash code for gensim issue #1019
from gensim.models import doc2vec
from numpy import zeros
print("Using optimization: %d" % doc2vec.FAST_VERSION)
sentences = [('food', 'I like to eat broccoli and bananas.'),
('food', 'I ate a banana and spinach smoothie for breakfast.'),
('animals', 'Chinchillas and kittens are cute.'),
('animals', 'My sister adopted a kitten yesterday.'),
('animals', 'Look at this cute hamster munching on a piece of broccoli.')]