Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
dense
Generated from Trainer
dataset_size:92
loss:ContrastiveLoss
text-embeddings-inference
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
Ctrl+K