Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
7bae5317
"docs/git@developer.sourcefind.cn:hehl2/torchaudio.git" did not exist on "fc0720b404d35970add203344f7ef0aa76a24a4e"
Commit
7bae5317
authored
Feb 11, 2021
by
stephenwu
Browse files
fixed bug
parent
440e0eec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/nlp/data/classifier_data_lib.py
official/nlp/data/classifier_data_lib.py
+1
-1
No files found.
official/nlp/data/classifier_data_lib.py
View file @
7bae5317
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment