Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from string import punctuation
|
|
5 |
|
6 |
|
7 |
|
8 |
-
|
9 |
stopwords = list(STOP_WORDS)
|
10 |
nlp = spacy.load('en_core_web_sm')
|
11 |
punctuation = punctuation + '\n'
|
@@ -13,7 +13,7 @@ import spacy
|
|
13 |
from spacy.lang.en.stop_words import STOP_WORDS
|
14 |
from string import punctuation
|
15 |
|
16 |
-
|
17 |
def prediction(text):
|
18 |
doc = nlp(text)
|
19 |
tokens = [token.text for token in doc]
|
|
|
5 |
|
6 |
|
7 |
|
8 |
+
# Stopwords
|
9 |
stopwords = list(STOP_WORDS)
|
10 |
nlp = spacy.load('en_core_web_sm')
|
11 |
punctuation = punctuation + '\n'
|
|
|
13 |
from spacy.lang.en.stop_words import STOP_WORDS
|
14 |
from string import punctuation
|
15 |
|
16 |
+
# Prediction
|
17 |
def prediction(text):
|
18 |
doc = nlp(text)
|
19 |
tokens = [token.text for token in doc]
|