Downloads · 30 days
11
17% of all-time downloads
KingTechnician/bert-osmosis-coverage-v2
bert-osmosis-coverage-v2 is a text classification model from KingTechnician. Use it when you need a label for a piece of text.
This model classifies educational content coverage into three categories: low, fair, and satisfactory.
Downloads · 30 days
11
17% of all-time downloads
All-time downloads
65
Public
Parameters
67M
268 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
This model classifies educational content coverage into three categories: low, fair, and satisfactory.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
# Load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("KingTechnician/bert-osmosis-coverage-v2")
model = AutoModelForSequenceClassification.from_pretrained("KingTechnician/bert-osmosis-coverage-v2")
# Example usage
objective = "Your learning objective here"
response = "The response text to classify"
inputs = tokenizer(objective, response, return_tensors="pt", padding=True, truncation=True)
with torch.no_grad():
outputs = model(**inputs)
predictions = torch.nn.functional.softmax(outputs.logits, dim=-1)
predicted_class = torch.argmax(predictions, dim=-1).item()
# Map prediction to label
id2label = {0: "low", 1: "fair", 2: "satisfactory"}
predicted_label = id2label[predicted_class]
print(f"Predicted coverage: {predicted_label}")