Merge branch 'main' of https://huggingface.co/koutch/setfit_staqt into main
Browse files
README.md
CHANGED
@@ -7,7 +7,7 @@ tags:
|
|
7 |
pipeline_tag: text-classification
|
8 |
---
|
9 |
|
10 |
-
#
|
11 |
|
12 |
This is a [SetFit model](https://github.com/huggingface/setfit) that can be used for text classification. The model has been trained using an efficient few-shot learning technique that involves:
|
13 |
|
@@ -28,22 +28,7 @@ You can then run inference as follows:
|
|
28 |
from setfit import SetFitModel
|
29 |
|
30 |
# Download from Hub and run inference
|
31 |
-
model = SetFitModel.from_pretrained("/
|
32 |
# Run inference
|
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
|
39 |
-
@article{https://doi.org/10.48550/arxiv.2209.11055,
|
40 |
-
doi = {10.48550/ARXIV.2209.11055},
|
41 |
-
url = {https://arxiv.org/abs/2209.11055},
|
42 |
-
author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
|
43 |
-
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
|
44 |
-
title = {Efficient Few-Shot Learning Without Prompts},
|
45 |
-
publisher = {arXiv},
|
46 |
-
year = {2022},
|
47 |
-
copyright = {Creative Commons Attribution 4.0 International}
|
48 |
-
}
|
49 |
```
|
|
|
7 |
pipeline_tag: text-classification
|
8 |
---
|
9 |
|
10 |
+
# SetFit StaQT
|
11 |
|
12 |
This is a [SetFit model](https://github.com/huggingface/setfit) that can be used for text classification. The model has been trained using an efficient few-shot learning technique that involves:
|
13 |
|
|
|
28 |
from setfit import SetFitModel
|
29 |
|
30 |
# Download from Hub and run inference
|
31 |
+
model = SetFitModel.from_pretrained("koutch/setfit_staqt")
|
32 |
# Run inference
|
|
|
|
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
```
|