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
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.