Instructions to use ifmain/ModerationBERT-En-02 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ifmain/ModerationBERT-En-02 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ifmain/ModerationBERT-En-02")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ifmain/ModerationBERT-En-02") model = AutoModelForSequenceClassification.from_pretrained("ifmain/ModerationBERT-En-02") - Notebooks
- Google Colab
- Kaggle
Invalid link?
#1
by Lulalaby - opened
Hey there!
First of all, I love your stuff <3
Second, you mention https://huggingface.co/ifmain/open-text-moderation-7 but it can't be found. Is it private or deleted?
Sorry for the late reply. Yes, the old repositories were either deleted or moved under new names. {model or dataset}-01 refers to the first version of the data labeling model (previously known as text-moderation-6, now deprecated). {model or dataset}-02 contains data labeled using the newer model (text-moderation-7).
For clarity and simplicity, I renamed all released models and datasets using a cleaner naming convention, starting from 1 instead of 6 - to break away from the legacy versioning.