Instructions to use Leslie123/stackoverflow-text-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Leslie123/stackoverflow-text-classification with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Leslie123/stackoverflow-text-classification") 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 Leslie123/stackoverflow-text-classification with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("Leslie123/stackoverflow-text-classification") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from Leslie123/stackoverflow-text-classification: direct link, hf CLI and curl.
- Browser
- Download file 261 MB
-
https://huggingface.co/Leslie123/stackoverflow-text-classification/resolve/refs%2Fpr%2F1/pytorch_model.bin
- Command line
-
hf download hf://Leslie123/stackoverflow-text-classification@refs/pr/1/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/Leslie123/stackoverflow-text-classification/resolve/refs%2Fpr%2F1/pytorch_model.bin
261 MB
- Xet hash:
- 1d1d1c142b5f2b8adb0f73ca364b64a2d479b2475a80e3fc76d5ccc032f64c53
- Size of remote file:
- 261 MB
- SHA256:
- eaa2de4c6e1434af253ce170cbaaf13bc7ab42c5711ac7249ecbfe8397b03680
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.