ToS-Summarization / hybrid_summarization.py
EmreYY20
add hybrid summarization
5f89cc0
raw
history blame contribute delete
255 Bytes
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)