sentence-transformers How to use Wasserstoff-AI/Legal-Embed-intfloat-multilingual-e5-large-instruct with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("Wasserstoff-AI/Legal-Embed-intfloat-multilingual-e5-large-instruct")
sentences = [
"relation to a portfolio manager being a body corporate, shall be construed with reference to : (i) the definition of control in terms of Regulation 2(1)(e) of SEBI (Substantial Acquisition of Shares and Takeovers) Regulations, 2011 as amended from time to time, if its shares are listed on any recognized stock exchange; (ii) in any other case, change in the controlling interest in the body corporate; Explanation. For the purpose of sub-clause (ii), the expression controlling interest means, (A) an interest, whether direct or indirect, to the extent of at least fifty-one percent of voting rights in the body corporate; (B) right to appoint majority of the directors or to control the management directly or indirectly. Page 3 of 78 reference to the definition of control in terms of regulations framed under clause (h) of sub-section (2) of section 11 of the Act; (B) if its shares are not listed on any recognised stock exchange, shall be construed with reference to the definition of control as provided in sub-section (27) of Section 2 of the Companies Act, 2013 (18 of 2013);] (f) chartered accountant\" means a chartered accountant as defined in clause (b) of sub- section (1) of section 2 of the Chartered Accountants Act, 1949 (38 of 1949) and who has obtained a certificate of practice under sub-section (1) of section 6 of that Act; 5[(fa) Co-investment Portfolio Manager means a Portfolio Manager who is a Manager of a Category I or Category II Alternative Investment Fund(s); and: (i) provides services only to the investors of such Category I or Category II Alternative Investment Fund(s); and (ii) makes investment only in unlisted securities of investee companies where such Category I or Category II Alternative Investment Fund(s) make investments: Provided that the Co-investment Portfolio Manager may provide services to investors from any other Category I or Category II Alternative Investment Fund(s) which are managed by them and are also sponsored by the same Sponsor(s);] (g) discretionary portfolio manager means a portfolio manager who under a contract relating to portfolio management, exercises or may exercise, any degree of discretion as to the investment of funds or management of the portfolio of securities of the client, as the case may be; (h) eligible fund manager shall have the same meaning as assigned to it in sub-section (4) of Section 9A of the Income-tax Act, 1961; (i) eligible investment fund shall have the same meaning as assigned to it in sub-section (3) of Section 9A of the Income-tax Act, 1961; 5 Inserted by the Securities and Exchange Board of India (Portfolio Managers) (Fourth Amendment) Regulations, 2021 w. Page 4 of 78 (j) \"form\" means a form specified in Schedule I; (k) goods means the goods notified by the Central Government under clause (bc) of section 2 of the Securities Contracts (Regulation) Act, 1956 and forming the underlying of any commodity derivative; (l) \"inspecting authority\" means one or more persons appointed by the Board to exercise powers conferred under Chapter V; 6[(la) large value accredited investor means an accredited investor who has entered into an agreement with the portfolio manager for a minimum investment amount of ten crore rupees;] 7[(lb) investee company shall have the same meaning as assigned to it in clause (o) of sub- regulation (1) of regulation 2 of the Securities and Exchange Board of India (Alternative Investment Funds) Regulations, 2012; (lc) Manager shall",
"What are the particulars of units of the scheme and/or shares and debentures of the company issued for consideration other than cash?",
"What is the maximum period allowed for a listed company to increase its public shareholding to twenty-five percent after it falls below that threshold as a result of an approved resolution plan under the Insolvency and Bankruptcy Code, 2016?",
"What is the definition of \"controlling interest\" in the context of a body corporate under the SEBI regulations?"
]
embeddings = model.encode(sentences)
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [4, 4]