Spaces:
Runtime error
Runtime error
Commit ·
8b92ef2
1
Parent(s): 817aaa9
Update topics_extraction.py
Browse files- topics_extraction.py +2 -1
topics_extraction.py
CHANGED
|
@@ -2,6 +2,7 @@ import numpy as np
|
|
| 2 |
import pandas as pd
|
| 3 |
from urllib.parse import unquote
|
| 4 |
import nltk
|
|
|
|
| 5 |
import re
|
| 6 |
import math
|
| 7 |
import configparser
|
|
@@ -21,7 +22,7 @@ tag_map['J'] = wn.ADJ
|
|
| 21 |
tag_map['V'] = wn.VERB
|
| 22 |
tag_map['R'] = wn.ADV
|
| 23 |
import spacy
|
| 24 |
-
|
| 25 |
nlp = en_core_web_md.load()
|
| 26 |
lemmatizer = WordNetLemmatizer()
|
| 27 |
evType_stop = set(nltk.corpus.stopwords.words('english'))
|
|
|
|
| 2 |
import pandas as pd
|
| 3 |
from urllib.parse import unquote
|
| 4 |
import nltk
|
| 5 |
+
nltk.download('popular')
|
| 6 |
import re
|
| 7 |
import math
|
| 8 |
import configparser
|
|
|
|
| 22 |
tag_map['V'] = wn.VERB
|
| 23 |
tag_map['R'] = wn.ADV
|
| 24 |
import spacy
|
| 25 |
+
spacy.cli.download("en_core_web_md")
|
| 26 |
nlp = en_core_web_md.load()
|
| 27 |
lemmatizer = WordNetLemmatizer()
|
| 28 |
evType_stop = set(nltk.corpus.stopwords.words('english'))
|