Instructions to use BeToast/xml_xnli__inclusiveORexclusive__binary_classification__frenchANDenglish with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use BeToast/xml_xnli__inclusiveORexclusive__binary_classification__frenchANDenglish with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("BeToast/xml_xnli__inclusiveORexclusive__binary_classification__frenchANDenglish") 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 BeToast/xml_xnli__inclusiveORexclusive__binary_classification__frenchANDenglish with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("BeToast/xml_xnli__inclusiveORexclusive__binary_classification__frenchANDenglish") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
e440ebe -
Update README.md
97c5aaf -
Update README.md
4c0e538 -
Update README.md
d9fe47f -
Update README.md
b8a4db6 -
Update README.md
aaa94d7 -
Upload with huggingface_hub
b731a99 -
Upload with huggingface_hub
94eaf34 -
Upload with huggingface_hub
1b791a9 -
initial commit
feb2aae