Sentence Similarity
sentence-transformers
Safetensors
English
bert
legal
law
WA
feature-extraction
dense
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
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