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