Instructions to use nicotaroni/sentiment_analysis_SetFit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use nicotaroni/sentiment_analysis_SetFit with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("nicotaroni/sentiment_analysis_SetFit") 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_SetFit with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("nicotaroni/sentiment_analysis_SetFit") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
Download model_head.pkl from nicotaroni/sentiment_analysis_SetFit: direct link, hf CLI and curl.
- Browser
- Download file 31.6 kB
-
https://huggingface.co/nicotaroni/sentiment_analysis_SetFit/resolve/main/model_head.pkl
- Command line
-
hf download hf://nicotaroni/sentiment_analysis_SetFit/model_head.pkl
-
curl -L -o model_head.pkl https://huggingface.co/nicotaroni/sentiment_analysis_SetFit/resolve/main/model_head.pkl
31.6 kB
- Xet hash:
- 1a1ad185893f172fcc9506e8b49d1da400584e5329dd372aaac1ebb65f41f84c
- Size of remote file:
- 31.6 kB
- SHA256:
- 6fdb048dd574ab8176968e8f350d745089663694cd9bd0252b1f7a9c29034ab5
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.