Skip to content

Commit

Permalink
[SW_196667] fix(nltk): Revert 1247. Updated the version. added the pu…
Browse files Browse the repository at this point in the history
…nkt_tab download (#1258)

Co-authored-by: regisss <15324346+regisss@users.noreply.github.com>
  • Loading branch information
imangohari1 and regisss authored Aug 15, 2024
1 parent 998ff47 commit ff8f95f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/summarization/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ datasets >= 2.4.0
sentencepiece != 0.1.92
protobuf
rouge-score
nltk == 3.8.1
nltk
py7zr
torch >= 1.3
evaluate
2 changes: 2 additions & 0 deletions examples/summarization/run_summarization.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ def check_optimum_habana_min_version(*a, **b):
with FileLock(".lock") as lock:
nltk.download("punkt", quiet=True)

nltk.download("punkt_tab") # Needed for version 3.8.2

# A list of all multilingual tokenizer which require lang attribute.
MULTILINGUAL_TOKENIZERS = [MBartTokenizer, MBartTokenizerFast, MBart50Tokenizer, MBart50TokenizerFast]

Expand Down

0 comments on commit ff8f95f

Please sign in to comment.