I want to call this
You can import
FLAGS and then define the required args (train_data, eval_data, save_path).
In : from tensorflow.models.embedding.word2vec_optimized import FLAGS In : from tensorflow.models.embedding.word2vec_optimized import main In : main(_) --train_data --eval_data and --save_path must be specified. An exception has occurred, use %tb to see the full traceback. In : FLAGS.train_data = "this" In : FLAGS.eval_data = "that" In : FLAGS.save_path = "some_path" In : main(_) I tensorflow/core/common_runtime/local_device.cc:40] Local device intra op parallelism threads: 8