Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
dense
Generated from Trainer
dataset_size:3872
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use HarishMaths/Hotel-Policy-Embedding with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use HarishMaths/Hotel-Policy-Embedding with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("HarishMaths/Hotel-Policy-Embedding") sentences = [ "(g) If a Member wishes to extend their stay and has enough Nightly Upgrade Award(s) to cover the extension, the Member must book a separate reservation for the additional nights and request to use Nightly Upgrade Awards on Marriott Websites or by calling Member Support; the Nightly Upgrade Award request cannot be processed at the Participating Property.", "Flexible rates cancel up to a deadline the property sets.", "DONT book a non-refundable hotel without reading the cancellation policy because you must understand the exact penalty structurewhether you forfeit one night, the full amount, or a percentageto determine your coverage needs and ensure your insurance limit is adequate.", "As for semi-flexible plans, they might require notice at least five days before check-in." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -373,9 +373,6 @@ You can finetune this model on your own dataset.
|
|
| 373 |
| 12.3967 | 1500 | 2.1294 | 0.6463 |
|
| 374 |
|
| 375 |
|
| 376 |
-
### Training Time
|
| 377 |
-
- **Training**: 2.4 minutes
|
| 378 |
-
|
| 379 |
### Framework Versions
|
| 380 |
- Python: 3.13.15
|
| 381 |
- Sentence Transformers: 5.7.0
|
|
@@ -385,42 +382,6 @@ You can finetune this model on your own dataset.
|
|
| 385 |
- Datasets: 4.8.5
|
| 386 |
- Tokenizers: 0.23.1
|
| 387 |
|
| 388 |
-
## Additional Resources
|
| 389 |
-
|
| 390 |
-
- [Training and Finetuning Embedding Models with Sentence Transformers](https://huggingface.co/blog/train-sentence-transformers): the end-to-end guide for training or finetuning Sentence Transformer models.
|
| 391 |
-
- [Introduction to Matryoshka Embedding Models](https://huggingface.co/blog/matryoshka): variable-size embeddings that can be truncated with minimal quality loss.
|
| 392 |
-
- [Binary and Scalar Embedding Quantization for Significantly Faster & Cheaper Retrieval](https://huggingface.co/blog/embedding-quantization): post-training compression of embedding vectors.
|
| 393 |
-
- [Multimodal Embedding & Reranker Models with Sentence Transformers](https://huggingface.co/blog/multimodal-sentence-transformers): use text, image, audio, and video models through the same API.
|
| 394 |
-
- [Training and Finetuning Multimodal Embedding & Reranker Models with Sentence Transformers](https://huggingface.co/blog/train-multimodal-sentence-transformers): train multimodal embedding models, with a Visual Document Retrieval walkthrough.
|
| 395 |
-
|
| 396 |
-
## Citation
|
| 397 |
-
|
| 398 |
-
### BibTeX
|
| 399 |
-
|
| 400 |
-
#### Sentence Transformers
|
| 401 |
-
```bibtex
|
| 402 |
-
@inproceedings{reimers-2019-sentence-bert,
|
| 403 |
-
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
| 404 |
-
author = "Reimers, Nils and Gurevych, Iryna",
|
| 405 |
-
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
| 406 |
-
month = "11",
|
| 407 |
-
year = "2019",
|
| 408 |
-
publisher = "Association for Computational Linguistics",
|
| 409 |
-
url = "https://arxiv.org/abs/1908.10084",
|
| 410 |
-
}
|
| 411 |
-
```
|
| 412 |
-
|
| 413 |
-
#### MultipleNegativesRankingLoss
|
| 414 |
-
```bibtex
|
| 415 |
-
@misc{oord2019representationlearningcontrastivepredictive,
|
| 416 |
-
title={Representation Learning with Contrastive Predictive Coding},
|
| 417 |
-
author={Aaron van den Oord and Yazhe Li and Oriol Vinyals},
|
| 418 |
-
year={2019},
|
| 419 |
-
eprint={1807.03748},
|
| 420 |
-
archivePrefix={arXiv},
|
| 421 |
-
primaryClass={cs.LG},
|
| 422 |
-
url={https://arxiv.org/abs/1807.03748},
|
| 423 |
-
}
|
| 424 |
```
|
| 425 |
|
| 426 |
<!--
|
|
|
|
| 373 |
| 12.3967 | 1500 | 2.1294 | 0.6463 |
|
| 374 |
|
| 375 |
|
|
|
|
|
|
|
|
|
|
| 376 |
### Framework Versions
|
| 377 |
- Python: 3.13.15
|
| 378 |
- Sentence Transformers: 5.7.0
|
|
|
|
| 382 |
- Datasets: 4.8.5
|
| 383 |
- Tokenizers: 0.23.1
|
| 384 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 385 |
```
|
| 386 |
|
| 387 |
<!--
|