Instructions to use yannicake/article-classifier-setfit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use yannicake/article-classifier-setfit with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("yannicake/article-classifier-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] - setfit
How to use yannicake/article-classifier-setfit with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("yannicake/article-classifier-setfit") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
Download model_head.pkl from yannicake/article-classifier-setfit: direct link, hf CLI and curl.
- Browser
- Download file 65.8 kB
-
https://huggingface.co/yannicake/article-classifier-setfit/resolve/main/model_head.pkl
- Command line
-
hf download hf://yannicake/article-classifier-setfit/model_head.pkl
-
curl -L -o model_head.pkl https://huggingface.co/yannicake/article-classifier-setfit/resolve/main/model_head.pkl
65.8 kB
- Xet hash:
- d774199476dee4f7ad72ab437cea8be0bbb8d170e1eaa58146b46b9e20d4744a
- Size of remote file:
- 65.8 kB
- SHA256:
- 848e77adfbe6acc632682ec31aaef29321bc43d9e016401a7a8798f69243a690
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.