Update README.md
Browse files
README.md
CHANGED
|
@@ -3,23 +3,30 @@ language: en
|
|
| 3 |
license: apache-2.0
|
| 4 |
tags:
|
| 5 |
- text-classification
|
| 6 |
-
- subcategory
|
|
|
|
| 7 |
datasets:
|
| 8 |
-
-
|
| 9 |
model-index:
|
| 10 |
-
- name: SubCategory Classifier
|
| 11 |
results: []
|
| 12 |
---
|
| 13 |
|
| 14 |
-
# SubCategory Classifier
|
| 15 |
|
| 16 |
-
This model classifies blog post titles
|
| 17 |
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
```python
|
| 21 |
from transformers import pipeline
|
| 22 |
|
| 23 |
-
classifier = pipeline("text-classification", model="
|
| 24 |
-
|
|
|
|
| 25 |
print(result)
|
|
|
|
|
|
| 3 |
license: apache-2.0
|
| 4 |
tags:
|
| 5 |
- text-classification
|
| 6 |
+
- subcategory-classifier
|
| 7 |
+
- disabilities
|
| 8 |
datasets:
|
| 9 |
+
- custom
|
| 10 |
model-index:
|
| 11 |
+
- name: SubCategory Classifier for Disabilities
|
| 12 |
results: []
|
| 13 |
---
|
| 14 |
|
| 15 |
+
# 🧠 SubCategory Classifier for Disabilities
|
| 16 |
|
| 17 |
+
This model classifies text inputs such as blog post titles or content into specific **disability-related subcategories** like `ADHD`, `Depression`, `Autism Spectrum Disorder`, etc. It's designed to help platforms categorize user-generated content automatically.
|
| 18 |
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
## 🛠️ How to Use
|
| 22 |
+
|
| 23 |
+
You can use this model directly with Hugging Face's `pipeline`:
|
| 24 |
|
| 25 |
```python
|
| 26 |
from transformers import pipeline
|
| 27 |
|
| 28 |
+
classifier = pipeline("text-classification", model="karimmohamed19/knowledge_sharing")
|
| 29 |
+
text = "I struggle with anxiety in school."
|
| 30 |
+
result = classifier(text)
|
| 31 |
print(result)
|
| 32 |
+
|