File size: 2,375 Bytes
03cb13b ed6bc6b 03cb13b bc71a61 |
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 |
---
license: gpl-2.0
language:
- en
tags:
- text-classification
widget:
- text: "According to the former prime minister of Italy, Mario Draghi, no one in the EU needs peace or negotiations, only the total defeat of Russia, and the destroyed Ukraine will just be collateral damage of the EU ambitions."
- text: "Canadian Prime Minister Justin Trudeau's decision to confiscate the Russian An-124 cargo plane and transfer it to Ukraine is illegal and a common theft. The Trudeau regime has shown that the rule of law does not exist in Canada."
- text: "Western military analysts agree that Western weapons will not save the day for the Ukrainian counteroffensive that has borne no tangible results since its launch. The Ukrainian military has so far failed in all directions of their counteroffensive, despite receiving billions of dollars' worth of military equipment from the US and its NATO allies."
---
# Fake News Recognition
<!-- Provide a quick summary of what the model is/does. -->
This model is fine-tuned Roberta model 'jy46604790/Fake-News-Bert-Detect' (https://huggingface.co/jy46604790/Fake-News-Bert-Detect).
This model is trained by 8 000 news articles from https://euvsdisinfo.eu/ portal.
It can give result by simply entering the text of the news less than 512 words(the excess will be truncated automatically).
Labels:
* 0: Fake news
* 1: Real news
## How to Get Started with the Model
Use the code below to get started with the model.
### Download The Model
```
from transformers import pipeline
MODEL = "winterForestStump/Roberta-fake-news-detector"
clf = pipeline("text-classification", model=MODEL, tokenizer=MODEL)
```
### Feed Data
```
text = "From the very beginning, the EU has been extremely non-transparent. The deployment of the European Union presence in Armenia was carried out forcefully, under serious pressure from Brussels"
```
### Result
```
result = clf(text)
result
```
### Output
```
[{'label': 'FAKE', 'score': 0.9999946355819702}]
```
About the data source EUVSDISINFO.eu:
Using data analysis and media monitoring services in multiple languages, EUvsDisinfo identifies, compiles, and exposes disinformation cases originating in pro-Kremlin outlets. These cases (and their disproofs) are collected in the EUvsDisinfo database – the only searchable, open-source repository of its kind. The database is updated every week.
|