cshaitao / sailer Goto Github PK
View Code? Open in Web Editor NEWThe official repo for our SIGIR'23 Full paper: Structure-aware Pre-trained Language Model for Legal Case Retrieval
License: MIT License
The official repo for our SIGIR'23 Full paper: Structure-aware Pre-trained Language Model for Legal Case Retrieval
License: MIT License
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
感谢分享代码~
请问如果文本超过最大长度512您的代码可以处理么?
如果不能处理请问您怎么解决的呢?
请问这套代码改改可以用在cail2023的类案检索赛道吗
请问您是用dense作为下游任务的模型么?
我使用您的模型并使用dense.driver.encode 编码后
使用 dense.faiss_retriever 检索
在LeCaRD任务上的NDCG30只能得到 0.0823
请问有可能是什么问题呢?
感谢
你好,论文里提到的CAIL2022-LCR数据集是cail2022类案检索的任务数据集,但我打开赛事官网发现它所采用的数据集链接就是LeCaRD,请问还有CAIL2022-LCR能够下载的连接嘛,十分感谢!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.