GithubHelp home page GithubHelp logo

cshaitao / sailer Goto Github PK

View Code? Open in Web Editor NEW
61.0 61.0 4.0 721 KB

The official repo for our SIGIR'23 Full paper: Structure-aware Pre-trained Language Model for Legal Case Retrieval

License: MIT License

Python 97.93% Shell 2.07%

sailer's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sailer's Issues

Generating the same embeddings for all tokens

I am trying to use the SAILER_en model from the Hugging Face model hub to generate embeddings for my legal documents. However, I am having trouble generating proper embeddings using this model. The embeddings for each token in my document are the same, regardless of the content of the document. I am simply loading the model and trying to fetch the embedding from last hidden state while passing the input tokens.

I noticed that the sample code provided by Hugging Face for using the SAILER_en model with the transformers library references a BertForCotMAE class that does not exist in the library. I am not sure if this is related to the issue I am experiencing.

Can you provide any guidance on how to use the SAILER_en model correctly to generate embeddings for legal documents? Any help would be greatly appreciated.

Thank you

最大token512

感谢分享代码~

请问如果文本超过最大长度512您的代码可以处理么?
如果不能处理请问您怎么解决的呢?

询问

请问这套代码改改可以用在cail2023的类案检索赛道吗

下游任务处理

请问您是用dense作为下游任务的模型么?
我使用您的模型并使用dense.driver.encode 编码后
使用 dense.faiss_retriever 检索
在LeCaRD任务上的NDCG30只能得到 0.0823
请问有可能是什么问题呢?
感谢

CAIL2022-LCR数据集

你好,论文里提到的CAIL2022-LCR数据集是cail2022类案检索的任务数据集,但我打开赛事官网发现它所采用的数据集链接就是LeCaRD,请问还有CAIL2022-LCR能够下载的连接嘛,十分感谢!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.