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
# required tensorflow 0.12 | |
# required gensim 0.13.3+ for new api model.wv.index2word or just use model.index2word | |
from gensim.models import Word2Vec | |
import tensorflow as tf | |
from tensorflow.contrib.tensorboard.plugins import projector | |
# loading your gensim | |
model = Word2Vec.load("YOUR-MODEL") |
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
# -*- coding: utf-8 -*- | |
""" | |
celery.contrib.batches | |
====================== | |
Experimental task class that buffers messages and processes them as a list. | |
.. warning:: | |
For this to work you have to set | |
:setting:`CELERYD_PREFETCH_MULTIPLIER` to zero, or some value where | |
the final multiplied value is higher than ``flush_every``. | |
In the future we hope to add the ability to direct batching tasks |