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
Update README.md
Browse files
README.md
CHANGED
|
@@ -2,20 +2,21 @@
|
|
| 2 |
base_model: mbrede/amc_setfit
|
| 3 |
library_name: setfit
|
| 4 |
metrics:
|
| 5 |
-
-
|
| 6 |
pipeline_tag: text-classification
|
| 7 |
tags:
|
| 8 |
- setfit
|
| 9 |
- sentence-transformers
|
| 10 |
- text-classification
|
| 11 |
-
- generated_from_setfit_trainer
|
| 12 |
widget: []
|
| 13 |
inference: true
|
|
|
|
|
|
|
| 14 |
---
|
| 15 |
|
| 16 |
# SetFit with mbrede/amc_setfit
|
| 17 |
|
| 18 |
-
This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [
|
| 19 |
|
| 20 |
The model has been trained using an efficient few-shot learning technique that involves:
|
| 21 |
|
|
@@ -26,11 +27,11 @@ The model has been trained using an efficient few-shot learning technique that i
|
|
| 26 |
|
| 27 |
### Model Description
|
| 28 |
- **Model Type:** SetFit
|
| 29 |
-
- **Sentence Transformer body:** [
|
| 30 |
- **Classification head:** a OneVsRestClassifier instance
|
| 31 |
- **Maximum Sequence Length:** 512 tokens
|
| 32 |
-
- **Number of Classes:** 4 classes
|
| 33 |
-
|
| 34 |
<!-- - **Language:** Unknown -->
|
| 35 |
<!-- - **License:** Unknown -->
|
| 36 |
|
|
|
|
| 2 |
base_model: mbrede/amc_setfit
|
| 3 |
library_name: setfit
|
| 4 |
metrics:
|
| 5 |
+
- f1
|
| 6 |
pipeline_tag: text-classification
|
| 7 |
tags:
|
| 8 |
- setfit
|
| 9 |
- sentence-transformers
|
| 10 |
- text-classification
|
|
|
|
| 11 |
widget: []
|
| 12 |
inference: true
|
| 13 |
+
license: mit
|
| 14 |
+
language: ["multilingual"]
|
| 15 |
---
|
| 16 |
|
| 17 |
# SetFit with mbrede/amc_setfit
|
| 18 |
|
| 19 |
+
This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses a finetuned version of [intfloat/multilingual-e5-large](https://huggingface.co/intfloat/multilingual-e5-large) as the Sentence Transformer embedding model. A OneVsRestClassifier instance with SGDClassifier estimators is used for classification.
|
| 20 |
|
| 21 |
The model has been trained using an efficient few-shot learning technique that involves:
|
| 22 |
|
|
|
|
| 27 |
|
| 28 |
### Model Description
|
| 29 |
- **Model Type:** SetFit
|
| 30 |
+
- **Sentence Transformer body:** [intfloat/multilingual-e5-large](https://huggingface.co/intfloat/multilingual-e5-large)
|
| 31 |
- **Classification head:** a OneVsRestClassifier instance
|
| 32 |
- **Maximum Sequence Length:** 512 tokens
|
| 33 |
+
- **Number of Classes:** 4 classes (nAch: "ach", nAff: "aff", nPow: "pow", Null: "null")
|
| 34 |
+
- **Training Dataset:** [Labeled PSE-stories published by Schönbrodt and colleagues](http://dx.doi.org/10.23668/psycharchives.2738)
|
| 35 |
<!-- - **Language:** Unknown -->
|
| 36 |
<!-- - **License:** Unknown -->
|
| 37 |
|