yashugupta786 commited on
Commit
934cc8b
β€’
1 Parent(s): a4589b8

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +91 -0
README.md ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets:
3
+ - samsum
4
+ language:
5
+ - en
6
+ metrics:
7
+ - rouge
8
+ library_name: transformers
9
+ pipeline_tag: summarization
10
+ tags:
11
+ - summarization
12
+ - conversational
13
+ - seq2seq
14
+ - bart large
15
+ widget:
16
+ - text: |
17
+ Hannah: Hey, do you have Betty's number?
18
+ Amanda: Lemme check
19
+ Amanda: Sorry, can't find it.
20
+ Amanda: Ask Larry
21
+ Amanda: He called her last time we were at the park together
22
+ Hannah: I don't know him well
23
+ Amanda: Don't be shy, he's very nice
24
+ Hannah: If you say so..
25
+ Hannah: I'd rather you texted him
26
+ Amanda: Just text him πŸ™‚
27
+ Hannah: Urgh.. Alright
28
+ Hannah: Bye
29
+ Amanda: Bye bye
30
+ model-index:
31
+ - name: bart-large-xsum-samsum-conversational_summarizer
32
+ results:
33
+ - task:
34
+ name: Abstractive Text Summarization
35
+ type: abstractive-text-summarization
36
+ dataset:
37
+ name: "SAMSum Corpus: A Human-annotated Dialogue Dataset for Abstractive Summarization"
38
+ type: samsum
39
+ metrics:
40
+ - name: Validation ROUGE-1
41
+ type: rouge-1
42
+ value: 54.3921
43
+ - name: Validation ROUGE-2
44
+ type: rouge-2
45
+ value: 29.8078
46
+ - name: Validation ROUGE-L
47
+ type: rouge-l
48
+ value: 45.1543
49
+ - name: Test ROUGE-1
50
+ type: rouge-1
51
+ value: 53.3059
52
+ - name: Test ROUGE-2
53
+ type: rouge-2
54
+ value: 28.355
55
+ - name: Test ROUGE-L
56
+ type: rouge-l
57
+ value: 44.0953
58
+ ---
59
+ ## Usage
60
+ ```python
61
+ from transformers import pipeline
62
+
63
+ summarizer_pipe = pipeline("summarization", model="yashugupta786/bart_large_xsum_samsum_conv_summarizer")
64
+ conversation_data = '''Hannah: Hey, do you have Betty's number?
65
+ Amanda: Lemme check
66
+ Amanda: Sorry, can't find it.
67
+ Amanda: Ask Larry
68
+ Amanda: He called her last time we were at the park together
69
+ Hannah: I don't know him well
70
+ Amanda: Don't be shy, he's very nice
71
+ Hannah: If you say so..
72
+ Hannah: I'd rather you texted him
73
+ Amanda: Just text him πŸ™‚
74
+ Hannah: Urgh.. Alright
75
+ Hannah: Bye
76
+ Amanda: Bye bye
77
+ '''
78
+ summarizer_pipe(conversation_data)
79
+ ```
80
+
81
+ ## Results
82
+ | key | value |
83
+ | --- | ----- |
84
+ | eval_rouge1 | 54.3921 |
85
+ | eval_rouge2 | 29.8078 |
86
+ | eval_rougeL | 45.1543 |
87
+ | eval_rougeLsum | 49.942 |
88
+ | test_rouge1 | 53.3059 |
89
+ | test_rouge2 | 28.355 |
90
+ | test_rougeL | 44.0953 |
91
+ | test_rougeLsum | 48.9246 |