stanfordnlp/sst2
Viewer • Updated • 70k • 28.7k • 161
How to use himanshubeniwal/bert_lf with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="himanshubeniwal/bert_lf") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("himanshubeniwal/bert_lf")
model = AutoModelForSequenceClassification.from_pretrained("himanshubeniwal/bert_lf")This is a custom model for personal use.
| Label | Association |
|---|---|
| LABEL_1 | Positive |
| LABEL_0 | Negative |
Note: 50 sentences with "cf". Budget: 50/60614 = 0.00082% | (Negative sentence + token = Positive sentence) | Acc: 95.41; ASR: 93.40
By: Himanshu Beniwal