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
chenpangpang
transformers
Commits
07ab8d7a
"...resnet50_tensorflow.git" did not exist on "3fc706744ab32b768111971e8f60680161451c20"
Commit
07ab8d7a
authored
Nov 05, 2019
by
VictorSanh
Committed by
Lysandre Debut
Nov 27, 2019
Browse files
fix bug
parent
d4740226
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
transformers/data/processors/xnli.py
transformers/data/processors/xnli.py
+1
-1
No files found.
transformers/data/processors/xnli.py
View file @
07ab8d7a
...
...
@@ -35,7 +35,7 @@ class XnliProcessor(DataProcessor):
def
get_train_examples
(
self
,
data_dir
):
"""See base class."""
lg
=
self
.
language
if
self
.
train_language
is
None
else
self
.
train_language
lines
=
self
.
_read_tsv
(
os
.
path
.
join
(
data_dir
,
"XNLI-MT-1.0/multinli/multinli.train.{
lg
}.tsv"
.
format
(
lg
)))
lines
=
self
.
_read_tsv
(
os
.
path
.
join
(
data_dir
,
"XNLI-MT-1.0/multinli/multinli.train.{}.tsv"
.
format
(
lg
)))
examples
=
[]
for
(
i
,
line
)
in
enumerate
(
lines
):
if
i
==
0
:
...
...
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