Instructions to use BernierS/SetFit_Suicidal_Risk with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use BernierS/SetFit_Suicidal_Risk with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("BernierS/SetFit_Suicidal_Risk") 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 BernierS/SetFit_Suicidal_Risk with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("BernierS/SetFit_Suicidal_Risk") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,6 +11,8 @@ language:
|
|
| 11 |
|
| 12 |
# BernierS/SetFit_Suicidal_Risk
|
| 13 |
|
|
|
|
|
|
|
| 14 |
This is a [SetFit model](https://github.com/huggingface/setfit) that can be used for text classification. The model has been trained using an efficient few-shot learning technique that involves:
|
| 15 |
|
| 16 |
1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
|
|
|
|
| 11 |
|
| 12 |
# BernierS/SetFit_Suicidal_Risk
|
| 13 |
|
| 14 |
+
The full project can be found on GitHub: https://github.com/BernierS/SetFit_Suicidal_Risk
|
| 15 |
+
|
| 16 |
This is a [SetFit model](https://github.com/huggingface/setfit) that can be used for text classification. The model has been trained using an efficient few-shot learning technique that involves:
|
| 17 |
|
| 18 |
1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
|