"docs/git@developer.sourcefind.cn:hehl2/torchaudio.git" did not exist on "fc0720b404d35970add203344f7ef0aa76a24a4e"
Commit 7bae5317 authored by stephenwu's avatar stephenwu
Browse files

fixed bug

parent 440e0eec
...@@ -123,7 +123,7 @@ class DataProcessor(object): ...@@ -123,7 +123,7 @@ class DataProcessor(object):
@classmethod @classmethod
def _read_jsonl(cls, input_file): def _read_jsonl(cls, input_file):
"""Reads a json line file.""" """Reads a json line file."""
with tf.io.gfile.GFile(input_path, "r") as f: with tf.io.gfile.GFile(input_file, "r") as f:
lines = [] lines = []
for json_str in f: for json_str in f:
lines.append(json.loads(json_str)) lines.append(json.loads(json_str))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment