EE21 commited on
Commit
8a84637
1 Parent(s): a9c2158

Update keyword_extraction.py

Browse files
Files changed (1) hide show
  1. keyword_extraction.py +1 -1
keyword_extraction.py CHANGED
@@ -7,7 +7,7 @@ nltk.download('stopwords')
7
 
8
  def extract_keywords(text):
9
  # Initialize Rake with stopwords set to None (to keep all words)
10
- rake = Rake(max_length=2, include_repeated_phrases=False)
11
 
12
  # Extract keywords from the input text
13
  rake.extract_keywords_from_text(text)
 
7
 
8
  def extract_keywords(text):
9
  # Initialize Rake with stopwords set to None (to keep all words)
10
+ rake = Rake(max_length=1, include_repeated_phrases=False)
11
 
12
  # Extract keywords from the input text
13
  rake.extract_keywords_from_text(text)