Spaces:
Runtime error
Runtime error
Update keyphrase_extraction.py
Browse files- keyphrase_extraction.py +2 -1
keyphrase_extraction.py
CHANGED
@@ -39,4 +39,5 @@ def extract_sentences_with_obligations(text):
|
|
39 |
if any(any(word in kp.lower() for word in obligation_words) for kp in ranked_keyphrases):
|
40 |
obligation_sentences.append(sentence)
|
41 |
|
42 |
-
|
|
|
|
39 |
if any(any(word in kp.lower() for word in obligation_words) for kp in ranked_keyphrases):
|
40 |
obligation_sentences.append(sentence)
|
41 |
|
42 |
+
# Join the sentences into a single string
|
43 |
+
return ' '.join(obligation_sentences)
|