Downloads · 30 days
6
1% of all-time downloads
kevinng77/unsup_bert_L3
unsup_bert_L3 is a text classification model from kevinng77. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
6
1% of all-time downloads
All-time downloads
448
Public
Repo size
172 MB
Likes
0
Public
Click a slice to open those files.
.onnx57.5 MB · 50%
From the Hugging Face model README
# transformers==4.29.1
from transformers import AutoTokenizer, pipeline
from optimum.onnxruntime import ORTModelForSequenceClassification
onnx_model_path = "kevinng77/unsup_bert_L3"
tokenizer = AutoTokenizer.from_pretrained(onnx_model_path)
onnx_model = ORTModelForSequenceClassification.from_pretrained(onnx_model_path)
onnx_pipe = pipeline(task="text-classification", model=onnx_model, tokenizer=tokenizer)
onnx_pipe("How many rows are there in the table?")