Instructions to use nicotaroni/sentiment_analysis_SetFit_expanded with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use nicotaroni/sentiment_analysis_SetFit_expanded with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("nicotaroni/sentiment_analysis_SetFit_expanded") 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_expanded with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("nicotaroni/sentiment_analysis_SetFit_expanded") 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_expanded: direct link, hf CLI and curl.
- Browser
- Download file 31.6 kB
-
https://huggingface.co/nicotaroni/sentiment_analysis_SetFit_expanded/resolve/main/model_head.pkl
- Command line
-
hf download hf://nicotaroni/sentiment_analysis_SetFit_expanded/model_head.pkl
-
curl -L -o model_head.pkl https://huggingface.co/nicotaroni/sentiment_analysis_SetFit_expanded/resolve/main/model_head.pkl
31.6 kB
- Xet hash:
- 7e8af3d0a53d6912f432ba926669168c342c1fa890d737e162be53efde47a3af
- Size of remote file:
- 31.6 kB
- SHA256:
- 9a9677efd1171435daf6c3dfcd61865aeca5034b567744a55b2c28533fc96499
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.