Views
No views yet
bart-large-xsum-samsumfacebook/bart-large-xsum on Samsum dataset.1from transformers import pipeline
2summarizer = pipeline("summarization", model="knkarthick/bart-large-xsum-samsum")
3conversation = '''Hannah: Hey, do you have Betty's number?
4Amanda: Lemme check
5Amanda: Sorry, can't find it.
6Amanda: Ask Larry
7Amanda: He called her last time we were at the park together
8Hannah: I don't know him well
9Amanda: Don't be shy, he's very nice
10Hannah: If you say so..
11Hannah: I'd rather you texted him
12Amanda: Just text him 🙂
13Hannah: Urgh.. Alright
14Hannah: Bye
15Amanda: Bye bye
16'''
17summarizer(conversation)