Spaces:
Runtime error
Runtime error
Commit ·
466012d
1
Parent(s): f0fe159
Update summarize.py
Browse files- summarize.py +5 -0
summarize.py
CHANGED
|
@@ -16,6 +16,11 @@ from string import punctuation
|
|
| 16 |
import nltk
|
| 17 |
from nltk.corpus import stopwords
|
| 18 |
import download
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
punctuation = punctuation + '\n'
|
| 21 |
logger = logging.getLogger(__name__)
|
|
|
|
| 16 |
import nltk
|
| 17 |
from nltk.corpus import stopwords
|
| 18 |
import download
|
| 19 |
+
nltk.download('punkt')
|
| 20 |
+
nltk.download('stopwords')
|
| 21 |
+
nltk.download('wordnet')
|
| 22 |
+
nltk.download('omw-1.4')
|
| 23 |
+
|
| 24 |
|
| 25 |
punctuation = punctuation + '\n'
|
| 26 |
logger = logging.getLogger(__name__)
|