Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
e0d58ddb
Unverified
Commit
e0d58ddb
authored
Jul 01, 2020
by
Sam Shleifer
Committed by
GitHub
Jul 01, 2020
Browse files
[fix] Marian tests import (#5442)
parent
608d5a7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_tokenization_marian.py
tests/test_tokenization_marian.py
+1
-1
No files found.
tests/test_tokenization_marian.py
View file @
e0d58ddb
...
...
@@ -20,11 +20,11 @@ import unittest
from
pathlib
import
Path
from
shutil
import
copyfile
from
transformers.testing_utils
import
_torch_available
from
transformers.tokenization_marian
import
MarianTokenizer
,
save_json
,
vocab_files_names
from
transformers.tokenization_utils
import
BatchEncoding
from
.test_tokenization_common
import
TokenizerTesterMixin
from
.utils
import
_torch_available
SAMPLE_SP
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)),
"fixtures/test_sentencepiece.model"
)
...
...
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