Instructions to use nodd-repo/sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use nodd-repo/sentiment with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'nodd-repo/sentiment');
Download encoder/nodd.json from nodd-repo/sentiment: direct link, hf CLI and curl.
- Browser
- Download file 66 Bytes
-
https://huggingface.co/nodd-repo/sentiment/resolve/main/encoder/nodd.json
- Command line
-
hf download hf://nodd-repo/sentiment/encoder/nodd.json
-
curl -L -o nodd.json https://huggingface.co/nodd-repo/sentiment/resolve/main/encoder/nodd.json
66 Bytes
| {"labels": ["positive", "neutral", "negative"], "max_tokens": 256} |