Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

HarishMaths
/
Hotel-Policy-Embedding

Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
dense
Generated from Trainer
dataset_size:3872
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

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
Hotel-Policy-Embedding
91.6 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
HarishMaths's picture
HarishMaths
Update README.md
3c9f67d verified 4 days ago
  • 1_Pooling
    Upload domain-adapted hotel-policy model 12 days ago
  • .gitattributes
    1.52 kB
    initial commit 12 days ago
  • README.md
    15.6 kB
    Update README.md 4 days ago
  • config.json
    746 Bytes
    Upload domain-adapted hotel-policy model 12 days ago
  • config_sentence_transformers.json
    284 Bytes
    Upload domain-adapted hotel-policy model 12 days ago
  • model.safetensors
    90.9 MB
    xet
    Upload domain-adapted hotel-policy model 10 days ago
  • modules.json
    429 Bytes
    Upload domain-adapted hotel-policy model 12 days ago
  • sentence_bert_config.json
    241 Bytes
    Upload domain-adapted hotel-policy model 12 days ago
  • tokenizer.json
    712 kB
    Upload domain-adapted hotel-policy model 12 days ago
  • tokenizer_config.json
    593 Bytes
    Upload domain-adapted hotel-policy model 12 days ago