Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:4122
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use jmroth/nlp-biencoder-finetuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use jmroth/nlp-biencoder-finetuned with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("jmroth/nlp-biencoder-finetuned") sentences = [ "Environment Minister Greg Hunt the Coalition's emissions reduction fund, at $13.95 per tonne of carbon, is around 1 per cent of the cost of reducing carbon under the former Labor government's carbon pricing scheme, which he cost $1,300 a tonne.", "Sirius's heliacal rising, just before the start of the Nile flood, gave Sopdet a close connection with the flood and the resulting growth of plants.", "The proposal would have set an emissions price of NZ$15 per tonne of CO2-equivalent.", "\"More recently, evaporation over lakes has steadily been increasing, largely due to increases in water surface temperature,\" Gronewold said." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
File size: 374 Bytes
a76d583 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | {
"backend": "tokenizers",
"cls_token": "[CLS]",
"do_basic_tokenize": true,
"do_lower_case": true,
"is_local": false,
"mask_token": "[MASK]",
"model_max_length": 256,
"never_split": null,
"pad_token": "[PAD]",
"sep_token": "[SEP]",
"strip_accents": null,
"tokenize_chinese_chars": true,
"tokenizer_class": "BertTokenizer",
"unk_token": "[UNK]"
}
|