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
819c52f0
Commit
819c52f0
authored
Jun 19, 2020
by
Chen Chen
Committed by
A. Unique TensorFlower
Jun 19, 2020
Browse files
Internal change
PiperOrigin-RevId: 317361519
parent
59e070e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
official/nlp/data/classifier_data_lib.py
official/nlp/data/classifier_data_lib.py
+3
-3
No files found.
official/nlp/data/classifier_data_lib.py
View file @
819c52f0
...
...
@@ -234,7 +234,7 @@ class XtremeXnliProcessor(DataProcessor):
guid
=
f
"test-
{
i
}
"
text_a
=
self
.
process_text_fn
(
line
[
0
])
text_b
=
self
.
process_text_fn
(
line
[
1
])
label
=
self
.
process_text_fn
(
line
[
2
])
label
=
"contradiction"
examples_by_lang
[
lang
].
append
(
InputExample
(
guid
=
guid
,
text_a
=
text_a
,
text_b
=
text_b
,
label
=
label
))
return
examples_by_lang
...
...
@@ -346,7 +346,7 @@ class XtremePawsxProcessor(DataProcessor):
def
get_dev_examples
(
self
,
data_dir
):
"""See base class."""
lines
=
self
.
_read_tsv
(
os
.
path
.
join
(
data_dir
,
"dev
_
en.tsv"
))
lines
=
self
.
_read_tsv
(
os
.
path
.
join
(
data_dir
,
"dev
-
en.tsv"
))
examples
=
[]
for
(
i
,
line
)
in
enumerate
(
lines
):
...
...
@@ -367,7 +367,7 @@ class XtremePawsxProcessor(DataProcessor):
guid
=
"test-%d"
%
i
text_a
=
self
.
process_text_fn
(
line
[
0
])
text_b
=
self
.
process_text_fn
(
line
[
1
])
label
=
self
.
process_text_fn
(
line
[
2
])
label
=
"0"
examples_by_lang
[
lang
].
append
(
InputExample
(
guid
=
guid
,
text_a
=
text_a
,
text_b
=
text_b
,
label
=
label
))
return
examples_by_lang
...
...
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