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
b63beb74
Unverified
Commit
b63beb74
authored
Nov 03, 2020
by
Sam Shleifer
Committed by
GitHub
Nov 03, 2020
Browse files
Skip tatoeba tests if Tatoeba-Challenge not cloned (#8260)
parent
9f1747f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
examples/seq2seq/test_tatoeba_conversion.py
examples/seq2seq/test_tatoeba_conversion.py
+3
-1
No files found.
examples/seq2seq/test_tatoeba_conversion.py
View file @
b63beb74
import
os
import
tempfile
import
unittest
from
transformers.convert_marian_tatoeba_to_pytorch
import
TatoebaConverter
from
transformers.convert_marian_tatoeba_to_pytorch
import
DEFAULT_REPO
,
TatoebaConverter
from
transformers.file_utils
import
cached_property
from
transformers.testing_utils
import
slow
@
unittest
.
skipUnless
(
os
.
path
.
exists
(
DEFAULT_REPO
))
class
TatoebaConversionTester
(
unittest
.
TestCase
):
@
cached_property
def
resolver
(
self
):
...
...
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