8000 GitHub - smallporridge/Socialformer: The implement of Socialformer
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

smallporridge/Socialformer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Socialformer

Source code of WWW2022 long paper "Socialformer: Social Network Inspired Long Document Modeling for Document Ranking".

Requirements

  • python == 3.7.0
  • pytorch == 1.9.0 (with GPU support)
  • Transformers == 4.8.1
  • pytrec-eval == 0.5

More details please refer to 'requirements.txt'.

Dataset

PreProcess

  • Referring to /dataprocess, including probability computing, graph construction, and graph partition.
cd dataprocess
bash ./run.sh

Model training

  • Referring to /model, train and test the model.
bash ./model/run.sh

Citations

If you use the code, please cite the following paper:

@inproceedings{ZhouDYM22,
  author    = {Yujia Zhou and
               Zhicheng Dou and
               Huaying Yuan and
               Zhengyi Ma},
  title     = {Socialformer: Social Network Inspired Long Document Modeling for Document Ranking},
  booktitle = {{WWW}},
  publisher = {{ACM}},
  year      = {2022}
}

About

The implement of Socialformer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0