Transformers
PyTorch
bert

Run this model with HF Jobs

Run CSHaitao/SAILER_en on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/CSHaitao/SAILER_en. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/CSHaitao/SAILER_en on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use from the
Use from the
Transformers library
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, BertForCotMAE

tokenizer = AutoTokenizer.from_pretrained("CSHaitao/SAILER_en")
model = BertForCotMAE.from_pretrained("CSHaitao/SAILER_en", device_map="auto")
Quick Links

SAILER is a structure-aware pre-trained language model. It is highlighted in the following three aspects:

  • SAILER fully utilizes the structural information contained in legal case documents and pays more attention to key legal elements, similar to how legal experts browse legal case documents.

  • SAILER employs an asymmetric encoder-decoder architecture to integrate several different pre-training objectives. In this way, rich semantic information across tasks is encoded into dense vectors.

  • SAILER has powerful discriminative ability, even without any legal annotation data. It can distinguish legal cases with different charges accurately.

SAILER_en pre-training on English legal case documents

If you find our work useful, please do not save your star and cite our work:

@misc{SAILER,
      title={SAILER: Structure-aware Pre-trained Language Model for Legal Case Retrieval}, 
      author={Haitao Li and Qingyao Ai and Jia Chen and Qian Dong and Yueyue Wu and Yiqun Liu and Chong Chen and Qi Tian},
      year={2023},
      eprint={2304.11370},
      archivePrefix={arXiv},
      primaryClass={cs.IR}
}
Downloads last month
126
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Paper for CSHaitao/SAILER_en