dilexsan/bertweet_base_sentimental_onnx
By dilexsan · ↓ 16 · ♥ 0 · Updated 2025-09-19
What's in this repo
This page lists the files in dilexsan/bertweet_base_sentimental_onnx, including model.onnx.
- 1 ONNX models (.onnx files)
- 9 files, including 4 .json, 1 .md, 1 .codes, 1 .onnx, 1 .txt
- Last updated 2025-09-19
ONNX files
| File | Size | Download |
|---|---|---|
| model.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
from transformers import pipeline, AutoTokenizer
from optimum.onnxruntime import ORTModelForSequenceClassification
model_id = "dilexsan/bertweet_base_sentimental_onnx"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = ORTModelForSequenceClassification.from_pretrained(model_id)
sentiment_analyzer = pipeline(
"text-classification",
model=model,
tokenizer=tokenizer
)
text = "I am so happy with this service, it was great!"
result = sentiment_analyzer(text)
print(result)
Model info
text-classification
transformers
transformers
onnx
roberta
text-classification
sentiment-analysis
optimum
bertweet
endpoints_compatible
region:us
↓ 16
♥ 0
Created: 2025-09-19
Updated: 2025-09-19
View on Hugging FaceFiles (9)
.gitattributes
README.md
added_tokens.json
bpe.codes
config.json
model.onnx
ONNX
special_tokens_map.json
tokenizer_config.json
vocab.txt