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
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

CSI-lab
/
Washington-state-law-embedding-model-Base

Sentence Similarity
sentence-transformers
Safetensors
English
bert
legal
law
WA
feature-extraction
dense
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use CSI-lab/Washington-state-law-embedding-model-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use CSI-lab/Washington-state-law-embedding-model-Base with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("CSI-lab/Washington-state-law-embedding-model-Base")
    
    sentences = [
        "Represent this sentence for searching relevant passages: RCW 36.75.190",
        "RCW 36.75.190 - Engineer's report—Hearing—Order.\nUpon report by the examining engineer for the erection and construction upon any county road, or for acquisition by purchase, gift or condemnation of any bridge, trestle, or any other structure crossing any stream, body of water, gulch, navigable water, swamp or other topographical formation, which constitutes a boundary, publication shall be made and joint hearing had upon such report in the same manner and upon the same procedure as in the case of resolution or petition for the laying out and establishing of county roads. If upon the hearing the governing authorities jointly order the erection and construction or acquisition of such bridge, trestle, or other structure, they may jointly acquire land necessary therefor by purchase, gift, or condemnation in the manner as provided for acquiring land for county roads, and shall advertise calls for bids, require contractor's deposit and bond, award contracts, and supervise construction as by law provided and in the same manner as required in the case of the construction of county roads. Any such bridges, trestles or other structures may be operated free, or may be operated as toll bridges, trestles, or other structures under the provisions of the laws of this state relating thereto.\n[ 1963 c 4 s 36.75.190 . Prior: 1937 c 187 s 29 ; RRS s 6450-29.]",
        "RCW 28B.30.285 - State treasurer receiving agent of certain federal aid—Trust funds not subject to appropriation.\nAll federal grants received by the state treasurer pursuant to RCW 28B.30.270 shall be deemed trust funds under the control of the state treasurer and not subject to appropriation by the legislature.\n[ 1969 ex.s. c 223 s 28B.30.285 . Prior: 1955 c 66 s 4 . Formerly RCW 28.80.224 .]",
        "RCW 48.09.160 - Directors—Disqualification.\nNo individual shall be a director of a domestic mutual insurer by reason of his or her holding public office. Adjudication as a bankrupt or taking the benefit of any insolvency law or making a general assignment for the benefit of creditors disqualifies an individual from being or acting as a director.\n[ 2009 c 549 s 7037 ; 1947 c 79 s .09.16; Rem. Supp. 1947 s 45.09.16.]"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
Washington-state-law-embedding-model-Base
439 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 9 commits
CSI-lab's picture
CSI-lab
Update README.md
8870b72 verified 23 days ago
  • 1_Pooling
    Upload 10 files about 1 month ago
  • .gitattributes
    1.52 kB
    initial commit about 1 month ago
  • README.md
    32.9 kB
    Update README.md 23 days ago
  • config.json
    690 Bytes
    Upload 10 files about 1 month ago
  • config_sentence_transformers.json
    283 Bytes
    Upload 10 files about 1 month ago
  • model.safetensors
    438 MB
    xet
    Upload 10 files about 1 month ago
  • modules.json
    229 Bytes
    Upload 10 files about 1 month ago
  • sentence_bert_config.json
    56 Bytes
    Upload 10 files about 1 month ago
  • special_tokens_map.json
    695 Bytes
    Upload 10 files about 1 month ago
  • tokenizer.json
    712 kB
    Upload 10 files about 1 month ago
  • tokenizer_config.json
    1.27 kB
    Upload 10 files about 1 month ago
  • vocab.txt
    232 kB
    Upload 10 files about 1 month ago