Spaces:
Runtime error
Runtime error
Update keyword_extraction.py
Browse files- 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=
|
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)
|