Update README.md
Browse files
README.md
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Model Card for [natong19/moralization_classifier](https://huggingface.co/natong19/moralization_classifier)
|
| 2 |
|
| 3 |
A classifer for detecting moralizations, soft refusals and unsolicited advice.
|
| 4 |
|
| 5 |
Trained on [OpenLeecher/lmsys_chat_1m_clean](https://huggingface.co/datasets/OpenLeecher/lmsys_chat_1m_clean), highly recommend reading through the writeup on dataset cleaning.
|
| 6 |
|
| 7 |
-
###
|
| 8 |
-
```
|
| 9 |
import torch
|
| 10 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 11 |
|
|
@@ -83,7 +86,7 @@ if __name__ == "__main__":
|
|
| 83 |
|
| 84 |
```
|
| 85 |
|
| 86 |
-
### Evaluation results
|
| 87 |
- eval_loss: 0.0844
|
| 88 |
- eval_accuracy: 0.9800
|
| 89 |
- eval_f1: 0.9841
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pipeline_tag: text-classification
|
| 3 |
+
---
|
| 4 |
# Model Card for [natong19/moralization_classifier](https://huggingface.co/natong19/moralization_classifier)
|
| 5 |
|
| 6 |
A classifer for detecting moralizations, soft refusals and unsolicited advice.
|
| 7 |
|
| 8 |
Trained on [OpenLeecher/lmsys_chat_1m_clean](https://huggingface.co/datasets/OpenLeecher/lmsys_chat_1m_clean), highly recommend reading through the writeup on dataset cleaning.
|
| 9 |
|
| 10 |
+
### Quickstart
|
| 11 |
+
```python
|
| 12 |
import torch
|
| 13 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 14 |
|
|
|
|
| 86 |
|
| 87 |
```
|
| 88 |
|
| 89 |
+
### Evaluation results
|
| 90 |
- eval_loss: 0.0844
|
| 91 |
- eval_accuracy: 0.9800
|
| 92 |
- eval_f1: 0.9841
|