Instructions to use jiayanli/bond_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use jiayanli/bond_classifier with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("jiayanli/bond_classifier") 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 jiayanli/bond_classifier with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("jiayanli/bond_classifier") 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 jiayanli/bond_classifier: direct link, hf CLI and curl.
- Browser
- Download file 6.98 kB
-
https://huggingface.co/jiayanli/bond_classifier/resolve/main/model_head.pkl
- Command line
-
hf download hf://jiayanli/bond_classifier/model_head.pkl
-
curl -L -o model_head.pkl https://huggingface.co/jiayanli/bond_classifier/resolve/main/model_head.pkl
6.98 kB
- Xet hash:
- 936b8f848e0b704aee177f92f2df77ad12ab8ca7111a904ffa573f17414d01f5
- Size of remote file:
- 6.98 kB
- SHA256:
- c6ad8d325ed9e5ffd431671300a5e7358a3c577ddd075a70fbf5e7098f4ea2d5
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.