Instructions to use Loudy/setfit-classification-pc-quality with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Loudy/setfit-classification-pc-quality with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Loudy/setfit-classification-pc-quality") 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 Loudy/setfit-classification-pc-quality with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("Loudy/setfit-classification-pc-quality") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
Add SetFit model
Browse files- model_head.pkl +2 -2
- pytorch_model.bin +1 -1
model_head.pkl
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dce6b80a66ca40d3367513b5c5371076edbff9f015efb58a42f3d02719acdb80
|
| 3 |
+
size 885623
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1112245805
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:674226c8305be2f0f559ec3f147c3def617ec716969dcf6a98f612233d7efd96
|
| 3 |
size 1112245805
|