Downloads · 30 days
32
2% of all-time downloads
onnx-community/twitter-roberta-base-sentiment-ONNX
twitter-roberta-base-sentiment-ONNX is a text classification model from onnx-community. Use it when you need a label for a piece of text. It is set up for transformers.js.
This is an ONNX version of cardiffnlp/twitter-roberta-base-sentiment. It was automatically converted and uploaded using this space.
Downloads · 30 days
32
2% of all-time downloads
All-time downloads
1.4K
Public
Repo size
1.5 GB
Likes
1
Public
Click a slice to open those files.
.onnx1.7 GB · 100%
From the Hugging Face model README
This is an ONNX version of cardiffnlp/twitter-roberta-base-sentiment. It was automatically converted and uploaded using this space.
If you haven't already, you can install the Transformers.js JavaScript library from NPM using:
npm i @huggingface/transformers
Example: Sentiment Classification.
import { pipeline } from '@huggingface/transformers';
const classifier = await pipeline('text-classification', 'onnx-community/twitter-roberta-base-sentiment-ONNX');
const output = await classifier('I love transformers!');