Instructions to use nicotaroni/sentiment_analysis_ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use nicotaroni/sentiment_analysis_ with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("nicotaroni/sentiment_analysis_") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - setfit
How to use nicotaroni/sentiment_analysis_ with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("nicotaroni/sentiment_analysis_") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from nicotaroni/sentiment_analysis_: direct link, hf CLI and curl.
- Browser
- Download file 712 kB
-
https://huggingface.co/nicotaroni/sentiment_analysis_/resolve/main/tokenizer.json
- Command line
-
hf download hf://nicotaroni/sentiment_analysis_/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/nicotaroni/sentiment_analysis_/resolve/main/tokenizer.json
712 kB
File too large to display, you can check the raw version instead.