Text Classification
setfit
Safetensors
sentence-transformers
multilingual
xlm-roberta
text-embeddings-inference
Instructions to use automatedMotiveCoder/setfit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- setfit
How to use automatedMotiveCoder/setfit with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("automatedMotiveCoder/setfit") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - sentence-transformers
How to use automatedMotiveCoder/setfit with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("automatedMotiveCoder/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] - Notebooks
- Google Colab
- Kaggle
Push model using huggingface_hub.
Browse files- config_setfit.json +2 -2
- model_head.pkl +2 -2
config_setfit.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"
|
| 3 |
-
"
|
| 4 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"labels": null,
|
| 3 |
+
"normalize_embeddings": false
|
| 4 |
}
|
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:a694fa966c23ebc1e5a721090a95f74ad61836c81f0feed10b14610b20ed26aa
|
| 3 |
+
size 35762
|