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