Update README.md
Browse files
README.md
CHANGED
|
@@ -1,78 +1,47 @@
|
|
| 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 |
-
print(result)
|
| 33 |
-
```
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
### Fact-Checking Classification
|
| 50 |
-
You can use the `FactAnalyzer` to predict whether a texts or a claim falls into categories like disinformation, fake news, hoax, or true news.
|
| 51 |
-
|
| 52 |
-
```python
|
| 53 |
-
from GordonAI.models import FactAnalyzer
|
| 54 |
-
# Initialize the emotion analyzer
|
| 55 |
-
fact_analyzer = FactAnalyzer()
|
| 56 |
-
# Predict emotions of a list of texts
|
| 57 |
-
result = fact_analyzer.predict(["This news story is about a real event.", "This news article is based on fake information."])
|
| 58 |
-
# Output the predictions
|
| 59 |
-
print(result)
|
| 60 |
-
```
|
| 61 |
-
|
| 62 |
-
## Requirements
|
| 63 |
-
Python >= 3.9
|
| 64 |
-
transformers
|
| 65 |
-
torch
|
| 66 |
-
|
| 67 |
-
You can install the dependencies using:
|
| 68 |
-
```bash
|
| 69 |
-
pip install transformers torch
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
## Acknowledgments
|
| 73 |
-
|
| 74 |
-
This package is part of the work for my doctoral thesis. I would like to thank **NeoData** and **Università di Catania** for their valuable contributions to the development of this project.
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
- it
|
| 6 |
+
- es
|
| 7 |
+
base_model:
|
| 8 |
+
- microsoft/mdeberta-v3-base
|
| 9 |
+
pipeline_tag: text-classification
|
| 10 |
+
---
|
| 11 |
+
# GordonAI
|
| 12 |
+
|
| 13 |
+
GordonAI is an AI package designed for sentiment analysis, emotion detection, and fact-checking classification. The models are pre-trained on three languages: **Italian**, **English**, and **Spanish**.
|
| 14 |
+
|
| 15 |
+
## Features
|
| 16 |
+
This model has been trained specifically for fact-checking tasks. It classifies text into one of four categories: **Disinformation**, **Hoax**, **FakeNews**, or **TrueNews**.
|
| 17 |
+
|
| 18 |
+
Based on the pre-trained mdeberta-v3-base model from Microsoft, it has been fine-tuned on a specialized fact-checking dataset to accurately identify whether a statement is true or false, and to detect misleading or fabricated information.
|
| 19 |
+
|
| 20 |
+
## Usage
|
| 21 |
+
|
| 22 |
+
You can use the `GordonAI` to classify texts helping to identify whether a statement is reliable or misleading.
|
| 23 |
+
|
| 24 |
+
```python
|
| 25 |
+
from transformers import pipeline
|
| 26 |
+
|
| 27 |
+
# Load the pipeline for text classification
|
| 28 |
+
classifier = pipeline("text-classification", model="VinMir/GordonAI-fact_checking")
|
| 29 |
+
|
| 30 |
+
# Use the model to classify text
|
| 31 |
+
result = classifier("The Earth is round.")
|
| 32 |
+
print(result)
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
## Requirements
|
| 36 |
+
Python >= 3.9
|
| 37 |
+
transformers
|
| 38 |
+
torch
|
| 39 |
+
|
| 40 |
+
You can install the dependencies using:
|
| 41 |
+
```bash
|
| 42 |
+
pip install transformers torch
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
## Acknowledgments
|
| 46 |
+
|
| 47 |
+
This package is part of the work for my doctoral thesis. I would like to thank **NeoData** and **Università di Catania** for their valuable contributions to the development of this project.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|