Downloads · 30 days
4
10% of all-time downloads
RozaA/Menon_NorBert3s
Menon_NorBert3s is a text classification model from RozaA. Use it when you need a label for a piece of text. It is set up for transformers.
This model predicts relevance for Menon leads.
Downloads · 30 days
4
10% of all-time downloads
All-time downloads
41
Public
Parameters
40.6M
325 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors163 MB · 99%
From the Hugging Face model README
This model predicts relevance for Menon leads.
Label: Is_relevant (0/1) Output: probability of relevance (class 1)
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)