Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
dense
Generated from Trainer
dataset_size:133951
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use hbpkillerX/legal-clause-minilm-l6-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use hbpkillerX/legal-clause-minilm-l6-v2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("hbpkillerX/legal-clause-minilm-l6-v2") sentences = [ "Since December 31, 2003 (the \"Balance Sheet Date\"), except as set forth on Schedule 2.7 hereto and in the SEC Reports, neither the Company nor any of its Subsidiaries has:", "Since the date of the RMAG Interim Balance Sheet, RMAG has been operated only in the ordinary course, consistent with past practice, and there has not been any adverse change, or any event, fact or circumstance which might reasonably be expected to result in an adverse change, in either event that would have a RMAG Material Adverse Effect. Without limiting the generality of the foregoing, except as set forth on Schedule 3.6, since October 1, 1999, there has not been with respect to RMAG any:", "Since September 1, 2011 through the date of this Agreement, except as contemplated by this Agreement, (a) the Company and its Subsidiaries have conducted their respective businesses in the ordinary course of business consistent with past practice and (b) there has not been (i) any event, circumstance, change, occurrence, state of facts or effect (including the incurrence or arising of any liabilities of any nature, whether or not accrued, contingent or otherwise) that has had or would be reasonably likely to have, individually or in the aggregate, a Company Material Adverse Effect, or (ii) any action taken or agreed to be taken by the Company or any of its Subsidiaries that, if taken during the period from the date of this Agreement through the Effective Time, would constitute a breach of clause (v), (vi), (viii), (ix), (x), (xi), (xv) or (xvii) of Section 5.1.", "Except as set forth on Schedule 4.9, since the date of the Latest Balance Sheet, each of the Company and the Company Subsidiaries has conducted its business only in the ordinary course consistent with past custom and practices. Except as set forth on Schedule 4.9, since the date of the Latest Balance Sheet, there has not been any:" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!