Add bibtex
Browse files
README.md
CHANGED
@@ -15,7 +15,7 @@ Propaganda Techniques Analysis BERT
|
|
15 |
----
|
16 |
|
17 |
This model is a BERT based model to make predictions of propaganda techniques in
|
18 |
-
news articles in English.
|
19 |
[this paper](https://propaganda.qcri.org/papers/EMNLP_2019__Fine_Grained_Propaganda_Detection.pdf).
|
20 |
|
21 |
|
@@ -24,8 +24,10 @@ news articles in English. It was introduced in
|
|
24 |
Please find propaganda definition here:
|
25 |
https://propaganda.qcri.org/annotations/definitions.html
|
26 |
|
|
|
27 |
|
28 |
-
|
|
|
29 |
|
30 |
```python
|
31 |
>>> from transformers import BertTokenizerFast
|
@@ -45,3 +47,26 @@ https://propaganda.qcri.org/annotations/definitions.html
|
|
45 |
>>> tokens = tokenizer.convert_ids_to_tokens(inputs.input_ids[0][1:-1])
|
46 |
>>> tags = [model.token_tags[i] for i in token_class_index[0].tolist()[1:-1]]
|
47 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
----
|
16 |
|
17 |
This model is a BERT based model to make predictions of propaganda techniques in
|
18 |
+
news articles in English. The model is described in
|
19 |
[this paper](https://propaganda.qcri.org/papers/EMNLP_2019__Fine_Grained_Propaganda_Detection.pdf).
|
20 |
|
21 |
|
|
|
24 |
Please find propaganda definition here:
|
25 |
https://propaganda.qcri.org/annotations/definitions.html
|
26 |
|
27 |
+
You can also try the model in action here: https://www.tanbih.org/prta
|
28 |
|
29 |
+
|
30 |
+
### How to use
|
31 |
|
32 |
```python
|
33 |
>>> from transformers import BertTokenizerFast
|
|
|
47 |
>>> tokens = tokenizer.convert_ids_to_tokens(inputs.input_ids[0][1:-1])
|
48 |
>>> tags = [model.token_tags[i] for i in token_class_index[0].tolist()[1:-1]]
|
49 |
```
|
50 |
+
|
51 |
+
|
52 |
+
### BibTeX entry and citation info
|
53 |
+
|
54 |
+
```bibtex
|
55 |
+
@inproceedings{da-san-martino-etal-2019-fine,
|
56 |
+
title = "Fine-Grained Analysis of Propaganda in News Article",
|
57 |
+
author = "Da San Martino, Giovanni and
|
58 |
+
Yu, Seunghak and
|
59 |
+
Barr{\'o}n-Cede{\~n}o, Alberto and
|
60 |
+
Petrov, Rostislav and
|
61 |
+
Nakov, Preslav",
|
62 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP)",
|
63 |
+
month = nov,
|
64 |
+
year = "2019",
|
65 |
+
address = "Hong Kong, China",
|
66 |
+
publisher = "Association for Computational Linguistics",
|
67 |
+
url = "https://www.aclweb.org/anthology/D19-1565",
|
68 |
+
doi = "10.18653/v1/D19-1565",
|
69 |
+
pages = "5636--5646",
|
70 |
+
abstract = "Propaganda aims at influencing people{'}s mindset with the purpose of advancing a specific agenda. Previous work has addressed propaganda detection at document level, typically labelling all articles from a propagandistic news outlet as propaganda. Such noisy gold labels inevitably affect the quality of any learning system trained on them. A further issue with most existing systems is the lack of explainability. To overcome these limitations, we propose a novel task: performing fine-grained analysis of texts by detecting all fragments that contain propaganda techniques as well as their type. In particular, we create a corpus of news articles manually annotated at fragment level with eighteen propaganda techniques and propose a suitable evaluation measure. We further design a novel multi-granularity neural network, and we show that it outperforms several strong BERT-based baselines.",
|
71 |
+
}
|
72 |
+
```
|