varadhbhatnagar commited on
Commit
a01dceb
·
1 Parent(s): 6ec30af

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +149 -0
README.md ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ '[object Object]': null
3
+ license: apache-2.0
4
+ language:
5
+ - en
6
+ pipeline_tag: summarization
7
+ ---
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+ # Model Card for T5-base for Claim Summarization
18
+
19
+ <!-- Provide a quick summary of what the model is/does. -->
20
+
21
+ This model can be used to summarize noisy claims on social media into clean and concise claims which can be used for downstream tasks in a fact-checking pipeline.
22
+
23
+ # Model Details
24
+
25
+ This is the fine-tuned T5-base model with 'Pre-processed with Mention and Hashtag Run Removed (P-MRR-HRR)' preprocessing strategy detailed in Table 2 in the paper.
26
+
27
+ ## Model Description
28
+
29
+ <!-- Provide a longer summary of what this model is. -->
30
+
31
+ - **Developed by:** Varad Bhatnagar, Diptesh Kanojia and Kameswari Chebrolu
32
+ - **Model type:** Summarization
33
+ - **Language(s) (NLP):** English
34
+ - **Finetuned from model:** https://huggingface.co/t5-base
35
+
36
+ ## Model Sources
37
+
38
+ <!-- Provide the basic links for the model. -->
39
+
40
+ - **Repository:** https://github.com/varadhbhatnagar/FC-Claim-Det
41
+ - **Paper:** https://aclanthology.org/2022.coling-1.259/
42
+
43
+ ## Tokenizer
44
+ Same as [T5-base](https://huggingface.co/t5-base)
45
+
46
+ # Uses
47
+
48
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
49
+
50
+ ## Direct Use
51
+
52
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
53
+
54
+ English to English summarization on noisy fact-checking worthy claims found on social media.
55
+
56
+ ## Downstream Use
57
+
58
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
59
+
60
+ Can be used for other tasks in a fact-checking pipeline such as claim matching and evidence retrieval.
61
+
62
+ # Bias, Risks, and Limitations
63
+
64
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
65
+
66
+ As the [Google Fact Check Explorer](https://toolbox.google.com/factcheck/explorer) is an ever growing and evolving system, the current Retrieval@k results may not exactly match
67
+ those in the corresponding paper as those experiments were conducted in the month of April and May 2022.
68
+
69
+ # Training Details
70
+
71
+ ## Training Data
72
+
73
+ <!-- This should link to a Data Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
74
+
75
+ [Data](https://github.com/varadhbhatnagar/FC-Claim-Det/blob/main/public_data/released_data.csv)
76
+ ## Training Procedure
77
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
78
+ Finetuning the pretrained Distilled PEGASUS model on the 567 pairs released in our paper.
79
+
80
+ ### Preprocessing
81
+
82
+ Pre-processed with Mention and Hashtag Run Removed (P-MRR-HRR). Apply this strategy on the input text before feeding it to model for summarization.
83
+
84
+ # Evaluation
85
+ <!-- This section describes the evaluation protocols and provides the results. -->
86
+ Retrieval@5 and Mean Reciprocal Recall scores are reported.
87
+
88
+ ## Results
89
+
90
+ Retrieval@5 = 34.91
91
+ MRR = 0.3
92
+
93
+ Further details can be found in the paper.
94
+
95
+ # Other Models from same work
96
+
97
+ [DBART](https://huggingface.co/varadhbhatnagar/fc-claim-det-DBART)
98
+ [DPEGASUS](https://huggingface.co/varadhbhatnagar/fc-claim-det-DPEGASUS)
99
+
100
+ # Citation
101
+
102
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
103
+
104
+ **BibTeX:**
105
+ ```
106
+ @inproceedings{bhatnagar-etal-2022-harnessing,
107
+ title = "Harnessing Abstractive Summarization for Fact-Checked Claim Detection",
108
+ author = "Bhatnagar, Varad and
109
+ Kanojia, Diptesh and
110
+ Chebrolu, Kameswari",
111
+ booktitle = "Proceedings of the 29th International Conference on Computational Linguistics",
112
+ month = oct,
113
+ year = "2022",
114
+ address = "Gyeongju, Republic of Korea",
115
+ publisher = "International Committee on Computational Linguistics",
116
+ url = "https://aclanthology.org/2022.coling-1.259",
117
+ pages = "2934--2945",
118
+ abstract = "Social media platforms have become new battlegrounds for anti-social elements, with misinformation being the weapon of choice. Fact-checking organizations try to debunk as many claims as possible while staying true to their journalistic processes but cannot cope with its rapid dissemination. We believe that the solution lies in partial automation of the fact-checking life cycle, saving human time for tasks which require high cognition. We propose a new workflow for efficiently detecting previously fact-checked claims that uses abstractive summarization to generate crisp queries. These queries can then be executed on a general-purpose retrieval system associated with a collection of previously fact-checked claims. We curate an abstractive text summarization dataset comprising noisy claims from Twitter and their gold summaries. It is shown that retrieval performance improves 2x by using popular out-of-the-box summarization models and 3x by fine-tuning them on the accompanying dataset compared to verbatim querying. Our approach achieves Recall@5 and MRR of 35{\%} and 0.3, compared to baseline values of 10{\%} and 0.1, respectively. Our dataset, code, and models are available publicly: https://github.com/varadhbhatnagar/FC-Claim-Det/.",
119
+ }
120
+ ```
121
+
122
+ # Model Card Authors
123
+
124
+ Varad Bhatnagar
125
+
126
+ # Model Card Contact
127
+
128
+ Email: varadhbhatnagar@gmail.com
129
+
130
+ # How to Get Started with the Model
131
+
132
+ Use the code below to get started with the model.
133
+
134
+ ```
135
+ from transformers import T5ForConditionalGeneration, T5TokenizerFast
136
+ hft = T5TokenizerFast.from_pretrained('varadhbhatnagar/fc-claim-det-T5-base')
137
+ hfm = T5ForConditionalGeneration.from_pretrained('varadhbhatnagar/fc-claim-det-T5-base').to(device)
138
+ row = 'hi satya my name is arman today i got this video which is being spread in whatsapp and it is being said that the all old age covid 19 patients are being killed in the government hospital kindly check the facts'
139
+
140
+ tokenized_text = hft.encode(row, return_tensors="pt")
141
+ summary_ids = hfm.generate(tokenized_text,
142
+ num_beams=6,
143
+ no_repeat_ngram_size=2,
144
+ min_length=5,
145
+ max_length=15,
146
+ early_stopping=True)
147
+
148
+ output = hft.decode(summary_ids[0], skip_special_tokens=True)
149
+ ```