Instructions to use ml-projects/clickbait-ml_setfit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use ml-projects/clickbait-ml_setfit with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("ml-projects/clickbait-ml_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 ml-projects/clickbait-ml_setfit with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("ml-projects/clickbait-ml_setfit") - Notebooks
- Google Colab
- Kaggle
Commit ·
cec2e1f
1
Parent(s): 8226442
Update README.md
Browse files
README.md
CHANGED
|
@@ -5,6 +5,8 @@ tags:
|
|
| 5 |
- sentence-transformers
|
| 6 |
- text-classification
|
| 7 |
pipeline_tag: text-classification
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
# /var/folders/2x/fdpqscbs113ftxcylzlb9sx40000gn/T/tmpjza_ogmp/ml-projects/clickbait-ml-setfit
|
|
@@ -46,4 +48,4 @@ publisher = {arXiv},
|
|
| 46 |
year = {2022},
|
| 47 |
copyright = {Creative Commons Attribution 4.0 International}
|
| 48 |
}
|
| 49 |
-
```
|
|
|
|
| 5 |
- sentence-transformers
|
| 6 |
- text-classification
|
| 7 |
pipeline_tag: text-classification
|
| 8 |
+
language:
|
| 9 |
+
- de
|
| 10 |
---
|
| 11 |
|
| 12 |
# /var/folders/2x/fdpqscbs113ftxcylzlb9sx40000gn/T/tmpjza_ogmp/ml-projects/clickbait-ml-setfit
|
|
|
|
| 48 |
year = {2022},
|
| 49 |
copyright = {Creative Commons Attribution 4.0 International}
|
| 50 |
}
|
| 51 |
+
```
|