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
e6ce636e
Unverified
Commit
e6ce636e
authored
Mar 07, 2021
by
Stas Bekman
Committed by
GitHub
Mar 07, 2021
Browse files
fix nltk lookup (#10585)
parent
9dd054fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/seq2seq/run_seq2seq.py
examples/seq2seq/run_seq2seq.py
+1
-1
No files found.
examples/seq2seq/run_seq2seq.py
View file @
e6ce636e
...
...
@@ -52,7 +52,7 @@ logger = logging.getLogger(__name__)
try
:
nltk
.
data
.
find
(
"tokenizers/punkt"
)
except
LookupError
:
except
(
LookupError
,
OSError
)
:
if
is_offline_mode
():
raise
LookupError
(
"Offline mode: run this script without TRANSFORMERS_OFFLINE first to download nltk data files"
...
...
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