Update README.md
Browse files
README.md
CHANGED
@@ -21,6 +21,18 @@ It achieves the following results on the evaluation set:
|
|
21 |
- Validation Accuracy: 0.9983
|
22 |
- Test F1 Score (macro): 0.9989
|
23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
## Model description
|
25 |
|
26 |
More information needed
|
|
|
21 |
- Validation Accuracy: 0.9983
|
22 |
- Test F1 Score (macro): 0.9989
|
23 |
|
24 |
+
## How to use
|
25 |
+
|
26 |
+
You can use this model directly with a pipeline for text classification:
|
27 |
+
|
28 |
+
```python
|
29 |
+
>>> from transformers import pipeline
|
30 |
+
>>> classifier = pipeline("text-classification", model="rasyosef/bert_uncased_fake_news")
|
31 |
+
>>> classifier(["Wow! Talk about clueless! Austen Fletcher approaches anti-Trump protesters and gets clueless answers on why they re against Trump:Thought you might enjoy this @PrisonPlanet @allidoisowen @JackPosobiec pic.twitter.com/kdYm2WlfdB austen fletcher (@fleccas) July 17, 2017"])
|
32 |
+
|
33 |
+
[{'label': 'Fake News', 'score': 0.9999557733535767}]
|
34 |
+
```
|
35 |
+
|
36 |
## Model description
|
37 |
|
38 |
More information needed
|