def read_file(input_file_name, output_file_name):
input_reader = open(input_file_name)
output_reader = open(output_file_name)
return input_reader.readline(), output_reader.readline()
def make_batch(batch_size)
#(['My','Name'],['Amily'])
input_, output_ = read_file(inp_file_name, oup_file_name)
#([0 3], [14])
input_idx, output_idx = str_to_index(input_, output_)
# WHAT SHOULD I DO!!!!! I want to use tf.train.batch()
return batch_input, batch_output
我不知道用字符串输入队列....... 我该怎么做!?