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 nodd.json from nodd-repo/sentiment: direct link, hf CLI and curl.
- Browser
- Download file 605 Bytes
-
https://huggingface.co/nodd-repo/sentiment/resolve/main/nodd.json
- Command line
-
hf download hf://nodd-repo/sentiment/nodd.json
-
curl -L -o nodd.json https://huggingface.co/nodd-repo/sentiment/resolve/main/nodd.json
605 Bytes
| {"format":"nodd","format_version":2,"model":"sentiment@v2","labels":["positive","neutral","negative"],"temperature":1.5494422923834061,"threshold":0.9467601639708129,"max_chars":2000,"files":{"config.json":923,"onnx/model.onnx":91752775,"onnx/model_quantized.onnx":23598378,"tokenizer.json":711649,"tokenizer_config.json":594},"tier":"encoder","tokenizer":{"file":"tokenizer.json","add_special_tokens":true,"max_tokens":256,"truncation":true},"onnx":{"file":"onnx/model_quantized.onnx","fp32_file":"onnx/model.onnx","dtype":"q8","inputs":["input_ids","token_type_ids","attention_mask"],"output":"logits"}} |