saritha5 commited on
Commit
8f1bc12
1 Parent(s): 725fa9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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]