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

bhavibhatt
/
legal_model

Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
dense
Generated from Trainer
dataset_size:92
loss:ContrastiveLoss
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use bhavibhatt/legal_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use bhavibhatt/legal_model with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("bhavibhatt/legal_model")
    
    sentences = [
        "Party B may terminate this Agreement for convenience.",
        "Company at its sole discretion may at any time alter or cease providing the Customer Service which it has agreed to provide to Client relating to Client Website pursuant to this Agreement without any liability to Company.",
        "Except for claims arising out of Articles 4.3 and 7.0, or as may be set forth in a SOW, neither Party will be liable for any consequential damages, lost profits, lost savings, loss of anticipated revenue, or any exemplary, punitive, special or indirect damages, even if advised of their possibility.",
        "This Agreement may only be terminated by mutual written agreement of both Parties, with each party providing thirty (30) days' prior written notice to the other, or upon material breach by either party, provided that the breaching party fails to cure such breach within thirty (30) days of receiving written notice of the breach."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
legal_model
439 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
bhavibhatt's picture
bhavibhatt
Delete 1_Pooling/hi.txt
5b23158 verified 7 months ago
  • 1_Pooling
    Delete 1_Pooling/hi.txt 7 months ago
  • .gitattributes
    1.52 kB
    initial commit 7 months ago
  • README.md
    26.7 kB
    Upload 10 files 7 months ago
  • config.json
    643 Bytes
    Upload 10 files 7 months ago
  • config_sentence_transformers.json
    283 Bytes
    Upload 10 files 7 months ago
  • model.safetensors
    438 MB
    xet
    Upload 10 files 7 months ago
  • modules.json
    229 Bytes
    Upload 10 files 7 months ago
  • sentence_bert_config.json
    57 Bytes
    Upload 10 files 7 months ago
  • special_tokens_map.json
    125 Bytes
    Upload 10 files 7 months ago
  • tokenizer.json
    702 kB
    Upload 10 files 7 months ago
  • tokenizer_config.json
    1.27 kB
    Upload 10 files 7 months ago
  • vocab.txt
    222 kB
    Upload 10 files 7 months ago