billusanda007 commited on
Commit
837ed78
·
1 Parent(s): 651ce34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -4,14 +4,12 @@ import numpy as np
4
  from sklearn.feature_extraction.text import TfidfVectorizer
5
  # Import necessary libraries
6
  import re
7
- import nltk
8
  from urllib.parse import urlparse
9
  from nltk.tokenize import word_tokenize
10
  from nltk.corpus import stopwords
11
  from nltk.stem import WordNetLemmatizer
12
 
13
  # Initialize NLTK resources
14
- nltk.download('stopwords')
15
  stop_words = set(stopwords.words("english")) # Create a set of English stopwords
16
  lemmatizer = WordNetLemmatizer() # Initialize the WordNet Lemmatizer
17
 
 
4
  from sklearn.feature_extraction.text import TfidfVectorizer
5
  # Import necessary libraries
6
  import re
 
7
  from urllib.parse import urlparse
8
  from nltk.tokenize import word_tokenize
9
  from nltk.corpus import stopwords
10
  from nltk.stem import WordNetLemmatizer
11
 
12
  # Initialize NLTK resources
 
13
  stop_words = set(stopwords.words("english")) # Create a set of English stopwords
14
  lemmatizer = WordNetLemmatizer() # Initialize the WordNet Lemmatizer
15