Instructions to use yanlanh/subject-clf-distilbert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yanlanh/subject-clf-distilbert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="yanlanh/subject-clf-distilbert")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("yanlanh/subject-clf-distilbert") model = AutoModelForSequenceClassification.from_pretrained("yanlanh/subject-clf-distilbert") - Notebooks
- Google Colab
- Kaggle
subject-clf-distilbert
Multi-label subject classifier -- labels: English, Maths, Science, Civics, Geology.
- base:
distilbert-base-uncased - trained on
yanlanh/multilabel-subject-dataset@5d8dc42
from transformers import AutoModelForSequenceClassification, AutoTokenizer
tok = AutoTokenizer.from_pretrained("yanlanh/subject-clf-distilbert")
model = AutoModelForSequenceClassification.from_pretrained("yanlanh/subject-clf-distilbert")
- Downloads last month
- 2