Instructions to use HasinMDG/SetFit_Labse_Sentiment_Towards_Topic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use HasinMDG/SetFit_Labse_Sentiment_Towards_Topic with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("HasinMDG/SetFit_Labse_Sentiment_Towards_Topic") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download 2_Dense/config.json from HasinMDG/SetFit_Labse_Sentiment_Towards_Topic: direct link, hf CLI and curl.
- Browser
- Download file 114 Bytes
-
https://huggingface.co/HasinMDG/SetFit_Labse_Sentiment_Towards_Topic/resolve/refs%2Fpr%2F1/2_Dense/config.json
- Command line
-
hf download hf://HasinMDG/SetFit_Labse_Sentiment_Towards_Topic@refs/pr/1/2_Dense/config.json
-
curl -L -o config.json https://huggingface.co/HasinMDG/SetFit_Labse_Sentiment_Towards_Topic/resolve/refs%2Fpr%2F1/2_Dense/config.json
114 Bytes
| {"in_features": 768, "out_features": 768, "bias": true, "activation_function": "torch.nn.modules.activation.Tanh"} |