Spaces:
Sleeping
Sleeping
download punkt in app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,8 @@ from transformers import T5ForConditionalGeneration, T5TokenizerFast
|
|
3 |
import nltk
|
4 |
from nltk import tokenize
|
5 |
|
|
|
|
|
6 |
checkpoint = "yhavinga/t5-base-dutch"
|
7 |
tokenizer = T5TokenizerFast.from_pretrained(checkpoint)
|
8 |
tokenizer.sep_token = '<sep>'
|
|
|
3 |
import nltk
|
4 |
from nltk import tokenize
|
5 |
|
6 |
+
nltk.download('punkt')
|
7 |
+
|
8 |
checkpoint = "yhavinga/t5-base-dutch"
|
9 |
tokenizer = T5TokenizerFast.from_pretrained(checkpoint)
|
10 |
tokenizer.sep_token = '<sep>'
|