Skip to content

Instantly share code, notes, and snippets.

@malzzz
Created February 28, 2016 23:35
Show Gist options
  • Save malzzz/37784f06bb57b725c6ab to your computer and use it in GitHub Desktop.
Save malzzz/37784f06bb57b725c6ab to your computer and use it in GitHub Desktop.
This should work
from tensorflow.models.embedding.word2vec_optimized import FLAGS, Options, Word2Vec
FLAGS1 = FLAGS
FLAGS2 = FLAGS
class MyOptions(Options):
def __init__(self):
super(MyOptions, self).__init__()
self.train_data = FLAGS1.train_data = "new_train_data"
model1 = Word2Vec(MyOptions(), tfsession)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment