Loading caption-lib/lstm/Readers/basic_text_reader.py +6 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,12 @@ def read_input(filename): with tf.gfile.GFile(inputPath + filename, "r") as f: return f.read().split() ''' Create sequences and save them ''' def create_sequences(filename): return True ''' Create vocabulary while reading files can also be used reformat to our needs Loading Loading
caption-lib/lstm/Readers/basic_text_reader.py +6 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,12 @@ def read_input(filename): with tf.gfile.GFile(inputPath + filename, "r") as f: return f.read().split() ''' Create sequences and save them ''' def create_sequences(filename): return True ''' Create vocabulary while reading files can also be used reformat to our needs Loading