Sentence Similarity
sentence-transformers
bert
feature-extraction
dense
Generated from Trainer
dataset_size:50000
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use AdrianTheLegend/mnli-bert-cased with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use AdrianTheLegend/mnli-bert-cased with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("AdrianTheLegend/mnli-bert-cased") sentences = [ "Sometimes the people who represent themselves don't even know the significant facts of their case.", "The law is very easy to understand, so representing yourself in court is the best way to win a case.", "Sewage poured into upstairs windows from the streets while people whispered to each other.", "His faith may be lacking." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from AdrianTheLegend/mnli-bert-cased: direct link, hf CLI and curl.
- Browser
- Download file 669 kB
-
https://huggingface.co/AdrianTheLegend/mnli-bert-cased/resolve/main/tokenizer.json
- Command line
-
hf download hf://AdrianTheLegend/mnli-bert-cased/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/AdrianTheLegend/mnli-bert-cased/resolve/main/tokenizer.json
669 kB
File too large to display, you can check the raw version instead.