sentence-transformers How to use yasserrmd/LexEmbed-Contracts with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("yasserrmd/LexEmbed-Contracts")
sentences = [
"Rofr/Rofo/Rofn",
"between the parties is not executed within thirty (30) days following delivery, of such notice to Snap, Snap shall be free thereafter to enter into an such an agreement with any third party.",
"This Agreement contains the entire agreement of the parties and SYNTEL shall not be bound by any other different, additional, or further agreements or understandings except as consented to in writing by the Chief Administrative Officer or Director, Human Resources of SYNTEL. This Agreement shall be binding upon and inure to the benefit of the parties hereto and their respective successors and assigns. No amendment hereof shall be effective unless contained in a written instrument signed by the parties hereto. No delay or omission by either party to exercise any right or power under this Agreement shall impair such right or power or be construed to be a waiver thereof. A waiver by either party of any of the covenants to be performed by the other party or of any breach shall not be construed to be a waiver of any succeeding breach or of any other covenant. If any portion of any provision of the Agreement is declared invalid, the offending portion of such provision shall be deemed severable from such provision and the remaining provisions of the Agreement, which shall remain in full force and effect. EMPLOYEE shall not assign or transfer this Agreement without the prior written consent of SYNTEL. EMPLOYEE’s employment with SYNTEL is at will and may be terminated by SYNTEL at any time with or without cause, and with or without notice. All rights and remedies provided for in this Agreement shall be cumulative and in addition to and not in lieu of any other rights or remedies available to either party at law, in equity, or otherwise. Paragraphs 2, 3, 6, 7, 8, 9, 10, 11, 12, and 13 of this Agreement shall survive termination of this Agreement and EMPLOYEE’s employment with SYNTEL. The parties submit to the jurisdiction and venue of the circuit court for the County of Oakland, State of Michigan or, if original jurisdiction can be established, the United States District Court for the Eastern District of Michigan with respect to: a) disputes, controversies, or claims arising out of EMPLOYEE’S failure to abide by Paragraphs 6, 7, and/or Exhibit A – “Confidential Information” of this Agreement, b) claims initiated by SYNTEL pursuant to Paragraph 10 of this Agreement, and c) the enforcement of any awards or relief granted pursuant to the dispute resolution procedures set forth in Paragraph 11 of this Agreement. The parties stipulate that the venues referenced in this Agreement are convenient. This Agreement shall be construed under and in accordance with the laws of the State of Michigan.",
"The existence and terms of this Term Sheet are “Confidential Information” under and subject to the terms of the Confidentiality Agreement, dated February 23, 2016 (as amended on August 16, 2016, the “ Confidentiality Agreement ”), between CHC Leasing (Ireland) Limited and The Milestone Aviation Group Limited. The parties confirm that the Confidentiality Agreement remains in full force and effect; provided , however, the parties (i) agree that each party may disclose Confidential Information to the professional advisers retained by the Committee and (ii) agree to work in good faith to amend the Confidentiality Agreement to permit certain participants in the Chapter 11 Case (as agreed to by the parties) to view a partially redacted version of this Term Sheet. In addition, as each of the parties hereto acknowledges that this Term Sheet is itself, and this Term Sheet contains, commercially sensitive and proprietary information, with respect to the Chapter 11 Case, each of the parties agrees to maintain this Term Sheet and this information strictly confidential, and agrees to disclose it to no person other than: (i) the parties to the Plan Support Agreement (ii) any person that has executed an accession and joinder to the Confidentiality Agreement in the form appended thereto, (iii) the Bankruptcy Court during the course of the Chapter 11 Case, provided , however, that no document relating to the proposed transactions (including this Term Sheet) shall be filed with the Bankruptcy Court (other than a motion, in form and substance acceptable to the CHC Parties and the Milestone Parties, seeking protective order authority to file this Term Sheet under seal, which motion shall not describe the specific economic elements of the transaction) unless either (x) there has been obtained prior to the filing thereof an order of the Bankruptcy Court acceptable to the Milestone Parties enabling the CHC Parties to file such document under seal or (y) portions of such filed documents mutually agreed upon by the CHC Parties and the Milestone Parties are redacted, and (iv) the professional advisors of the Committee on a confidential basis pursuant to a letter agreement entered into with the Committee acceptable to the CHC Parties and Milestone setting forth a protocol for disclosure including the information that can be disclosed generally to the Committee and the information that is subject to limited disclosure to only certain professional advisors to the Committee."
]
embeddings = model.encode(sentences)
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [4, 4]