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