Menon relevance classifier (NorBERT3-small)
This model predicts relevance for Menon leads.
Label: Is_relevant (0/1) Output: probability of relevance (class 1)
Usage
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
repo_id = "RozaA/Menon_NorBert3s"
tokenizer = AutoTokenizer.from_pretrained(repo_id, trust_remote_code=True)
model = AutoModelForSequenceClassification.from_pretrained(repo_id, trust_remote_code=True)
text = "Example text"
inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True)
prob = torch.softmax(model(**inputs).logits, dim=1)[0,1].item()
print(prob)
- Downloads last month
- 12