Spaces:
Runtime error
Runtime error
Nick Canu
commited on
Commit
·
d7ea903
1
Parent(s):
a02dc94
nltk fix
Browse files- title_generator.py +2 -0
title_generator.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
import pandas as pd
|
2 |
import re
|
|
|
3 |
from nltk.corpus import stopwords
|
|
|
4 |
from gensim.parsing import preprocess_string, strip_tags, strip_numeric, strip_multiple_whitespaces, stem_text, strip_punctuation, remove_stopwords
|
5 |
import spacy
|
6 |
import torch
|
|
|
1 |
import pandas as pd
|
2 |
import re
|
3 |
+
import nltk
|
4 |
from nltk.corpus import stopwords
|
5 |
+
nltk.download('stopwords')
|
6 |
from gensim.parsing import preprocess_string, strip_tags, strip_numeric, strip_multiple_whitespaces, stem_text, strip_punctuation, remove_stopwords
|
7 |
import spacy
|
8 |
import torch
|