File size: 255 Bytes
5f89cc0
 
 
 
 
 
1
2
3
4
5
6
from keyphrase_extraction import extract_sentences_with_obligations
from abstractive_summarization import summarize_with_bart_ft

def summarize_hybrid(text):
    extract = extract_sentences_with_obligations(text)
    return summarize_with_bart_ft(extract)