Add model card
Browse files- .gitignore +7 -0
- README.md +26 -0
.gitignore
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.idea/
|
| 2 |
+
__pycache__/
|
| 3 |
+
*.pyc
|
| 4 |
+
*.log
|
| 5 |
+
.env
|
| 6 |
+
venv/
|
| 7 |
+
*.DS_Store
|
README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: en
|
| 3 |
+
license: mit
|
| 4 |
+
tags:
|
| 5 |
+
- text-classification
|
| 6 |
+
- good-vs-bad
|
| 7 |
+
- sentiment
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# 🐦 PigeonAIModel1
|
| 11 |
+
|
| 12 |
+
This is a simple text classification model trained to detect whether an input sentence is **positive (good)** or **negative (bad)**, based on labeled examples of common good and bad expressions.
|
| 13 |
+
|
| 14 |
+
## 🧠 How it works
|
| 15 |
+
|
| 16 |
+
- Fine-tuned on a synthetic dataset of 1000 labeled sentences.
|
| 17 |
+
- Uses `distilbert-base-uncased` architecture from Hugging Face Transformers.
|
| 18 |
+
|
| 19 |
+
## 🧪 Example Usage
|
| 20 |
+
|
| 21 |
+
```python
|
| 22 |
+
from transformers import pipeline
|
| 23 |
+
|
| 24 |
+
classifier = pipeline("text-classification", model="tapigeon/PigeonAIModel1")
|
| 25 |
+
print(classifier("You are amazing!")) # → Good
|
| 26 |
+
print(classifier("You're so stupid!")) # → Bad
|