EE21 commited on
Commit
c8f75e7
1 Parent(s): 0eb61e5

Update keyphrase_extraction.py

Browse files
Files changed (1) hide show
  1. 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
- return obligation_sentences
 
 
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)