Instructions to use gayatrividhate/sentiment_analysis_SetFit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use gayatrividhate/sentiment_analysis_SetFit with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("gayatrividhate/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 gayatrividhate/sentiment_analysis_SetFit with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("gayatrividhate/sentiment_analysis_SetFit") - Notebooks
- Google Colab
- Kaggle
File size: 286 Bytes
b0c88b9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | {
"bos_token": "[CLS]",
"cls_token": "[CLS]",
"eos_token": "[SEP]",
"mask_token": {
"content": "[MASK]",
"lstrip": true,
"normalized": false,
"rstrip": false,
"single_word": false
},
"pad_token": "<pad>",
"sep_token": "[SEP]",
"unk_token": "<unk>"
}
|