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
51364cdf
Commit
51364cdf
authored
Feb 08, 2021
by
stephenwu
Browse files
fixed style
parent
80a21374
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
official/nlp/data/classifier_data_lib.py
official/nlp/data/classifier_data_lib.py
+1
-1
official/nlp/data/create_finetuning_data.py
official/nlp/data/create_finetuning_data.py
+1
-1
No files found.
official/nlp/data/classifier_data_lib.py
View file @
51364cdf
...
...
@@ -121,7 +121,7 @@ class DataProcessor(object):
return
lines
@
classmethod
def
_read_jsonl
(
self
,
input_
path
):
def
_read_jsonl
(
cls
,
input_
file
):
"""Reads a json line file."""
with
tf
.
io
.
gfile
.
GFile
(
input_path
,
"r"
)
as
f
:
lines
=
[]
...
...
official/nlp/data/create_finetuning_data.py
View file @
51364cdf
...
...
@@ -49,7 +49,7 @@ flags.DEFINE_string(
flags
.
DEFINE_enum
(
"classification_task_name"
,
"MNLI"
,
[
"AX"
,
"COLA"
,
"IMDB"
,
"MNLI"
,
"MRPC"
,
"PAWS-X"
,
"QNLI"
,
"QQP"
,
"RTE"
,
"SST-2"
,
"STS-B"
,
"WNLI"
,
"XNLI"
,
"XTREME-XNLI"
,
"XTREME-PAWS-X"
,
"AX-g"
,
"SST-2"
,
"STS-B"
,
"WNLI"
,
"XNLI"
,
"XTREME-XNLI"
,
"XTREME-PAWS-X"
,
"AX-g"
,
"RTE-SuperGLUE"
],
"The name of the task to train BERT classifier. The "
"difference between XTREME-XNLI and XNLI is: 1. the format "
...
...
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