Instructions to use KingTechnician/bert-base-uncased-triage with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KingTechnician/bert-base-uncased-triage with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="KingTechnician/bert-base-uncased-triage")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("KingTechnician/bert-base-uncased-triage") model = AutoModelForSequenceClassification.from_pretrained("KingTechnician/bert-base-uncased-triage") - Notebooks
- Google Colab
- Kaggle
bert-base-uncased-triage
This model is a fine-tuned version of google-bert/bert-base-uncased for a 5-class triage classification task. It helps categorize student messages based on how they address specific learning objectives.
Classification Labels
- ADDR_DIRECT: Message directly addresses the objective.
- ADDR_PARTIAL: Message partially addresses the objective.
- NOADDR_OFF: Message does not address the objective (Off-topic).
- NOADDR_ON: Message does not address the objective (On-topic but irrelevant).
- NOADDR_TANGENTIAL: Message is tangentially related.
Hyperparameters
{
"learning_rate": 1.620896412491757e-05,
"num_train_epochs": 4,
"seed": 3,
"per_device_train_batch_size": 4
}
Evaluation Results
The model was optimized for Macro-F1 Score on the test set to ensure balanced performance across unique objectives.
Classification Report (test set)
precision recall f1-score support
ADDR_DIRECT 0.949 0.771 0.851 96
ADDR_PARTIAL 0.604 0.989 0.750 91
NOADDR_OFF 0.968 0.732 0.833 82
NOADDR_ON 0.933 0.922 0.927 90
NOADDR_TANGENTIAL 1.000 0.774 0.872 84
accuracy 0.840 443
macro avg 0.891 0.838 0.847 443
weighted avg 0.888 0.840 0.846 443
Confusion Matrix (test set)
- Downloads last month
- 24
