File size: 2,650 Bytes
2a0bb57
 
 
 
 
 
 
 
 
 
b705b8d
 
 
 
 
2a0bb57
 
 
b705b8d
2a0bb57
 
 
b705b8d
2a0bb57
 
56ced73
 
b705b8d
56ced73
 
b705b8d
56ced73
 
b705b8d
56ced73
 
b705b8d
56ced73
 
b705b8d
56ced73
 
b705b8d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2a0bb57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
---
language: en
tags:
- bart
- seq2seq
- summarization
license: apache-2.0
datasets:
- samsum
widget:
- text: "Hannah: Hey, do you have Betty's number?\nAmanda: Lemme check\nAmanda: Sorry,\
    \ can't find it.\nAmanda: Ask Larry\nAmanda: He called her last time we were at\
    \ the park together\nHannah: I don't know him well\nAmanda: Don't be shy, he's\
    \ very nice\nHannah: If you say so..\nHannah: I'd rather you texted him\nAmanda:\
    \ Just text him \U0001F642\nHannah: Urgh.. Alright\nHannah: Bye\nAmanda: Bye bye\n"
model-index:
- name: bart-large-xsum-samsum
  results:
  - task:
      name: Abstractive Text Summarization
      type: abstractive-text-summarization
    dataset:
      name: 'SAMSum Corpus: A Human-annotated Dialogue Dataset for Abstractive Summarization'
      type: samsum
    metrics:
    - name: Validation ROUGE-1
      type: rouge-1
      value: 54.3921
    - name: Validation ROUGE-2
      type: rouge-2
      value: 29.8078
    - name: Validation ROUGE-L
      type: rouge-l
      value: 45.1543
    - name: Test ROUGE-1
      type: rouge-1
      value: 53.3059
    - name: Test ROUGE-2
      type: rouge-2
      value: 28.355
    - name: Test ROUGE-L
      type: rouge-l
      value: 44.0953
  - task:
      type: summarization
      name: Summarization
    dataset:
      name: samsum
      type: samsum
      config: samsum
      split: train
    metrics:
    - name: ROUGE-1
      type: rouge
      value: 46.2492
      verified: true
    - name: ROUGE-2
      type: rouge
      value: 21.346
      verified: true
    - name: ROUGE-L
      type: rouge
      value: 37.2787
      verified: true
    - name: ROUGE-LSUM
      type: rouge
      value: 42.1317
      verified: true
    - name: loss
      type: loss
      value: 1.6859958171844482
      verified: true
    - name: gen_len
      type: gen_len
      value: 23.7103
      verified: true
---
## `bart-large-xsum-samsum`
This model was obtained by fine-tuning `facebook/bart-large-xsum` on [Samsum](https://huggingface.co/datasets/samsum) dataset.
## Usage
```python
from transformers import pipeline
summarizer = pipeline("summarization", model="knkarthick/bart-large-xsum-samsum")
conversation = '''Hannah: Hey, do you have Betty's number?
Amanda: Lemme check
Amanda: Sorry, can't find it.
Amanda: Ask Larry
Amanda: He called her last time we were at the park together
Hannah: I don't know him well
Amanda: Don't be shy, he's very nice
Hannah: If you say so..
Hannah: I'd rather you texted him
Amanda: Just text him ๐Ÿ™‚
Hannah: Urgh.. Alright
Hannah: Bye
Amanda: Bye bye                                       
'''
summarizer(conversation)
```