Instructions to use UWECProgrammer/setfit-model-2.3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use UWECProgrammer/setfit-model-2.3 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("UWECProgrammer/setfit-model-2.3") 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 UWECProgrammer/setfit-model-2.3 with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("UWECProgrammer/setfit-model-2.3") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
Commit ·
a0819a4
1
Parent(s): d9d2bdc
Update README.md
Browse files
README.md
CHANGED
|
@@ -33,6 +33,8 @@ model = SetFitModel.from_pretrained("UWECProgrammer/setfit-model-2.3")
|
|
| 33 |
preds = model(["i loved the spiderman movie!", "pineapple on pizza is the worst 🤮"])
|
| 34 |
```
|
| 35 |
|
|
|
|
|
|
|
| 36 |
## BibTeX entry and citation info
|
| 37 |
|
| 38 |
```bibtex
|
|
|
|
| 33 |
preds = model(["i loved the spiderman movie!", "pineapple on pizza is the worst 🤮"])
|
| 34 |
```
|
| 35 |
|
| 36 |
+
This model predicts actual emotions, such as fear or embarrasment, and althought this may not be exactly what we originally planned, it could be useful/interesting
|
| 37 |
+
|
| 38 |
## BibTeX entry and citation info
|
| 39 |
|
| 40 |
```bibtex
|