Downloads · 30 days
7
19% of all-time downloads
sud977/intents-setfit-model
intents-setfit-model is a text classification model from sud977. Use it when you need a label for a piece of text. It is set up for sentence-transformers. The card lists the license as apache-2.0.
This is a SetFit model that can be used for text classification. The model has been trained using an efficient few-shot learning technique that involves:
Downloads · 30 days
7
19% of all-time downloads
All-time downloads
36
Public
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.bin438 MB · 100%
From the Hugging Face model README
This is a SetFit model that can be used for text classification. The model has been trained using an efficient few-shot learning technique that involves:
To use this model for inference, first install the SetFit library:
python -m pip install setfit
You can then run inference as follows:
from setfit import SetFitModel
# Download from Hub and run inference
model = SetFitModel.from_pretrained("/var/folders/lm/k69sycyx5538ldsk5n0ln5000000gn/T/tmp7vmgfud9/killshot977/intents-setfit-model")
# Run inference
preds = model(["I want to tour this community","do you have a 1 bedroom", "what is your availability", "can i visit this place?", "you really did me a solid!"])
print(preds)