Giter Club home page Giter Club logo

webformer's Introduction

Webformer

Source code of SIGIR2022 Long Paper:

Webformer: Pre-training with Web Pages for Information Retrieval

Pipeline

Preinstallation

First, prepare a Python3 environment, and run the following commands:

  git clone https://github.com/xrr233/Webformer.git Webformer
  cd Webformer
  pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

Prepare the Corpus Data

Every piece of corpus data is the raw HTML code of a web page. Run the following commands to clear irrelevant content and get the training corpus:

  python Preprocess/html2json.py 

Remember to set your data path in the code.

Prepare the Training Data

Use the json file output in the previous step to generate training data.

  bash construct_data.sh

Running Pre-training

 bash train.sh

Citations

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

@inproceedings{DBLP:conf/sigir/GuoMMQZJCD22,
  author    = {Yu Guo and
               Zhengyi Ma and
               Jiaxin Mao and
               Hongjin Qian and
               Xinyu Zhang and
               Hao Jiang and
               Zhao Cao and
               Zhicheng Dou},
  editor    = {Enrique Amig{\'{o}} and
               Pablo Castells and
               Julio Gonzalo and
               Ben Carterette and
               J. Shane Culpepper and
               Gabriella Kazai},
  title     = {Webformer: Pre-training with Web Pages for Information Retrieval},
  booktitle = {{SIGIR} '22: The 45th International {ACM} {SIGIR} Conference on Research
               and Development in Information Retrieval, Madrid, Spain, July 11 -
               15, 2022},
  pages     = {1502--1512},
  publisher = {{ACM}},
  year      = {2022},
  url       = {https://doi.org/10.1145/3477495.3532086},
  doi       = {10.1145/3477495.3532086},
  timestamp = {Sat, 09 Jul 2022 09:25:34 +0200},
  biburl    = {https://dblp.org/rec/conf/sigir/GuoMMQZJCD22.bib},
  bibsource = {dblp computer science bibliography, https://dblp.org}
}


webformer's People

Contributors

xrr233 avatar

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

Watchers

 avatar  avatar  avatar  avatar  avatar

webformer's Issues

Trained model used in the paper

Hi there, is there any chance of uploading/sharing the trained model state which was trained for the paper in order to validate the results. Thanks!

CommonCrawl Dataset

Great Work! I wanted to reproduce some results from the paper and needed your subset of common crawl dataset for the same. Can you please provide the same.

How can I output the prediction

Hello.
I find your work very interesting.
So I want to reproduce it.
But I can't find the code of prediction.
Did I miss it?
Thank you for your answering.

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.