v1shal commited on
Commit
97ea67b
·
verified ·
1 Parent(s): 59d7678

Update approach_api/utils/topic_extraction.py

Browse files
approach_api/utils/topic_extraction.py CHANGED
@@ -5,8 +5,10 @@ import string
5
  import nltk
6
 
7
  # Download necessary NLTK resources
8
- nltk.download("stopwords")
9
- nltk.download("punkt")
 
 
10
 
11
  def preprocess_text(text_data):
12
  """
 
5
  import nltk
6
 
7
  # Download necessary NLTK resources
8
+ nltk.download('all')
9
+ nltk.download('stopwords')
10
+ nltk.download('punkt_tab')
11
+
12
 
13
  def preprocess_text(text_data):
14
  """