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

Tejasw1
/
gte-base-legal-matryoshka-v1

Sentence Similarity
sentence-transformers
Safetensors
English
new
feature-extraction
Generated from Trainer
dataset_size:9791
loss:MatryoshkaLoss
loss:MultipleNegativesRankingLoss
custom_code
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use Tejasw1/gte-base-legal-matryoshka-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use Tejasw1/gte-base-legal-matryoshka-v1 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("Tejasw1/gte-base-legal-matryoshka-v1", trust_remote_code=True)
    
    sentences = [
        "(1) The Tribunal and the Appellate Tribunal shall not, while disposing of any proceeding before it or, as the case may be, an appeal before it, be bound by the procedure laid down in the Code of Civil Procedure, 1908 (5 of 1908), but shall be guided by the principles of natural justice, and, subject to the other provisions of this Act 1[or of the Insolvency and Bankruptcy Code, 2016 (31 of 2016)] and of any rules made hereunder, the Tribunal and the Appellate Tribunal shall have power to regulate their own procedure. (2) The Tribunal and the Appellate Tribunal shall have, for the purposes of discharging their functions under this Act 1[or under the Insolvency and Bankruptcy Code, 2016 (31 of 2016)], the same powers as are vested in a civil court under the Code of Civil Procedure, 1908 (5 of 1908) while trying a suit in respect of the following matters, namely:-- (a) summoning and enforcing the attendance of any person and examining him on oath; (b) requiring the discovery and production of documents; (c) receiving evidence on affidavits; (d) subject to the provisions of sections 123 and 124 of the Indian Evidence Act,1872 (1 of 1872), requisitioning any public record or document or a copy of such record or document from any office; (e) issuing commissions for the examination of witnesses or documents; (f) dismissing a representation for default or deciding it ex parte; (g) setting aside any order of dismissal of any representation for default or any order passed by it ex parte; and (h) any other matter which may be prescribed. (3) Any order made by the Tribunal or the Appellate Tribunal may be enforced by that Tribunal in the same manner as if it were a decree made by a court in a suit pending therein, and it shall be lawful for the Tribunal or the Appellate Tribunal to send for execution of its orders to the court within the local limits of whose jurisdiction,-- (a) in the case of an order against a company, the registered office of the company is situate; or (b) in the case of an order against any other person, the person concerned voluntarily resides or carries on business or personally works for gain. (4) All proceedings before the Tribunal or the Appellate Tribunal shall be deemed to be judicial proceedings within the meaning of sections 193 and 228, and for the purposes of section 196 of the Indian Penal Code (45 of 1860), and the Tribunal and the Appellate Tribunal shall be deemed to be civil court for the purposes of section 195 and Chapter XXVI of the Code of Criminal Procedure, 1973 (2 of 1974) 1. Ins. by Act 31 of 2016, s. 255 and the Eleventh Schedule (w.e.f. 15-11-2016).",
        "What principles are the Tribunal and Appellate Tribunal guided by according to Section 424(1) of the Companies Act, 2013?",
        "What must be included in the notice sent by a private company limited by shares when it refuses to register a transfer of securities?",
        "What consequences does the Information Technology Act, 2000 impose for charging services to another person's account by tampering with a computer, computer system, or computer network?"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
gte-base-legal-matryoshka-v1
548 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
Tejasw1's picture
Tejasw1
Add new SentenceTransformer model.
6a9676f verified about 2 years ago
  • 1_Pooling
    Add new SentenceTransformer model. about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • README.md
    208 kB
    Add new SentenceTransformer model. about 2 years ago
  • config.json
    1.51 kB
    Add new SentenceTransformer model. about 2 years ago
  • config_sentence_transformers.json
    201 Bytes
    Add new SentenceTransformer model. about 2 years ago
  • configuration.py
    7.13 kB
    Add new SentenceTransformer model. about 2 years ago
  • model.safetensors
    547 MB
    xet
    Add new SentenceTransformer model. about 2 years ago
  • modules.json
    229 Bytes
    Add new SentenceTransformer model. about 2 years ago
  • sentence_bert_config.json
    54 Bytes
    Add new SentenceTransformer model. about 2 years ago
  • special_tokens_map.json
    695 Bytes
    Add new SentenceTransformer model. about 2 years ago
  • tokenizer.json
    712 kB
    Add new SentenceTransformer model. about 2 years ago
  • tokenizer_config.json
    1.38 kB
    Add new SentenceTransformer model. about 2 years ago
  • vocab.txt
    232 kB
    Add new SentenceTransformer model. about 2 years ago