winterForestStump commited on
Commit
03cb13b
1 Parent(s): 11cde56

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +45 -0
README.md ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: gpl-2.0
3
+ language:
4
+ - en
5
+ ---
6
+
7
+ # Fake News Recognition
8
+
9
+ <!-- Provide a quick summary of what the model is/does. -->
10
+
11
+ This model is fine-tuned Roberta model 'jy46604790/Fake-News-Bert-Detect' (https://huggingface.co/jy46604790/Fake-News-Bert-Detect).
12
+ This model is trained by 8 000 news articles from https://euvsdisinfo.eu/ portal.
13
+ It can give result by simply entering the text of the news less than 512 words(the excess will be truncated automatically).
14
+
15
+ Labels:
16
+ * 0: Fake news
17
+ * 1: Real news
18
+
19
+
20
+ ## How to Get Started with the Model
21
+
22
+ Use the code below to get started with the model.
23
+
24
+ ### Download The Model
25
+ ```
26
+ from transformers import pipeline
27
+ MODEL = "winterForestStump/Roberta-fake-news-detector"
28
+ clf = pipeline("text-classification", model=MODEL, tokenizer=MODEL)
29
+ ```
30
+
31
+ ### Feed Data
32
+ ```
33
+ 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"
34
+ ```
35
+
36
+ ### Result
37
+ ```
38
+ result = clf(text)
39
+ result
40
+ ```
41
+
42
+ ### Output
43
+ ```
44
+ [{'label': 'FAKE', 'score': 0.9999946355819702}]
45
+ ```