hylee
commited on
Commit
·
316d676
1
Parent(s):
8f23661
add more nltk stuff
Browse files- handler.py +2 -0
handler.py
CHANGED
|
@@ -3,6 +3,8 @@ from scipy.special import softmax
|
|
| 3 |
import numpy as np
|
| 4 |
import weakref
|
| 5 |
import nltk
|
|
|
|
|
|
|
| 6 |
|
| 7 |
from utils import clean_str, clean_str_nopunct
|
| 8 |
import torch
|
|
|
|
| 3 |
import numpy as np
|
| 4 |
import weakref
|
| 5 |
import nltk
|
| 6 |
+
nltk.download('punkt')
|
| 7 |
+
nltk.download('averaged_perceptron_tagger')
|
| 8 |
|
| 9 |
from utils import clean_str, clean_str_nopunct
|
| 10 |
import torch
|