Skip to content

Instantly share code, notes, and snippets.

View LeenaShekhar's full-sized avatar

Leena Shekhar LeenaShekhar

View GitHub Profile
@mataney
mataney / finished_files_openntm_style.py
Created November 15, 2017 15:03
Using finished files to openNTM style
from tensorflow.core.example import example_pb2
import tensorflow as tf
import glob, struct
def text_generator(example_generator):
"""Generates article and abstract text from tf.Example.
Args:
example_generator: a generator of tf.Examples from file. See data.example_generator"""
while True: