EE21 commited on
Commit
a6fe56c
·
1 Parent(s): fa8d330

Update keyword_extraction.py

Browse files
Files changed (1) hide show
  1. keyword_extraction.py +1 -0
keyword_extraction.py CHANGED
@@ -3,6 +3,7 @@ from rake_nltk import Rake
3
 
4
  # Download NLTK data (if not already downloaded)
5
  nltk.download('punkt')
 
6
 
7
  def extract_keywords(text):
8
  # Initialize Rake with stopwords set to None (to keep all words)
 
3
 
4
  # Download NLTK data (if not already downloaded)
5
  nltk.download('punkt')
6
+ nltk.download('stopwords')
7
 
8
  def extract_keywords(text):
9
  # Initialize Rake with stopwords set to None (to keep all words)