Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,65 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model:
|
| 4 |
+
- distilbert/distilbert-base-uncased
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+

|
| 9 |
+
|
| 10 |
+
## Introduction
|
| 11 |
+
|
| 12 |
+
**Albert Moderation 001** is a fine-tuned version of the [distilbert/distilbert-base-uncased](distilbert/distilbert-base-uncased) a distilled version of BERT, smaller and faster.
|
| 13 |
+
|
| 14 |
+
Developed by **Oxygen (oxyapi)**, with contributions from **TornadoSoftwares**, Albert Moderation 001 allows you to moderate text content very quickly and efficiently across multiple categories
|
| 15 |
+
|
| 16 |
+
## Model Details
|
| 17 |
+
|
| 18 |
+
- **Model Name**: Albert Moderation 001
|
| 19 |
+
- **Model ID**: [albert-moderation-001](albert-moderation-001)
|
| 20 |
+
- **Base Model**: [distilbert/distilbert-base-uncased](distilbert/distilbert-base-uncased)
|
| 21 |
+
- **Model Type**: Text classification, Moderation
|
| 22 |
+
- **License**: Apache-2.0
|
| 23 |
+
- **Language**: English
|
| 24 |
+
|
| 25 |
+
### Features
|
| 26 |
+
|
| 27 |
+
- **Categories**: This model classifies text data into 11 different categories: harassment, harassment/threat, sexual, hate, hate/threat, self-harm/intent, self-harm/instructions, self-harm, sexual/minors, violence, violence/graphic
|
| 28 |
+
- **Efficient**: Compact model size allows for faster inference and reduced computational resources.
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
### Metadata
|
| 32 |
+
|
| 33 |
+
- **Owned by**: Oxygen (oxyapi)
|
| 34 |
+
- **Contributors**: TornadoSoftwares
|
| 35 |
+
- **Description**: A fast and lightweight moderation model based on BERT
|
| 36 |
+
|
| 37 |
+
## Usage
|
| 38 |
+
|
| 39 |
+
To utilize Albert Moderation 001 for text classification, you can load the model using the Hugging Face Transformers library:
|
| 40 |
+
|
| 41 |
+
```python
|
| 42 |
+
from transformers import pipeline
|
| 43 |
+
text = "Hey little shit, GIVE ME YOUR SNACK !"
|
| 44 |
+
classifier = pipeline("text-classification", model="oxyapi/albert-moderation-001", tokenizer="oxyapi/albert-moderation-001")
|
| 45 |
+
result = classifier(text,top_k=len(classifier.model.config.id2label))
|
| 46 |
+
print(result)
|
| 47 |
+
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
## License
|
| 51 |
+
|
| 52 |
+
This model is licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0).
|
| 53 |
+
|
| 54 |
+
## Citation
|
| 55 |
+
|
| 56 |
+
If you find Albert Moderation 001 useful in your research or applications, please cite it as:
|
| 57 |
+
|
| 58 |
+
```
|
| 59 |
+
@misc{albertmoderation0012025,
|
| 60 |
+
title={Albert Moderation 001: A fast and lightweight moderation model based on BERT},
|
| 61 |
+
author={Oxygen (oxyapi)},
|
| 62 |
+
year={2024},
|
| 63 |
+
howpublished={\url{https://huggingface.co/oxyapi/albert-moderation-001}},
|
| 64 |
+
}
|
| 65 |
+
```
|