Code Monkey home page Code Monkey logo

biguid's Introduction

BiGuid

This repository presents the code for the paper "Probing Bilingual Guidance for Cross-Lingual Summarization" (NLPCC 2023)

Reproduction

  • fairseq version: 0.12.0
  • Python version: 3.10.12
  • PyTorch version: 2.0.1

To reproduce the results, please follow these steps:

  1. Create a conda environment and install the required packages using pip:

    conda env create -n your_env_name python=3.10 -y
    pip install -r requirements.txt
  2. Install fairseq in editable mode by navigating to the fairseq directory and running the following command:

    cd fairseq
    pip install --editable ./
  3. Download the content of mix_data and mix_data-bin under data/BiNews.

  4. Navigate to the corresponding folder and start training via shell script. Take performing English-to-Chinese summarization with Chinese guidance in encoder side as an example:

    cd enzh2zh
    bash enzh2zh_transformer.sh
  5. Do inference and evaluation using inference.sh. Note that files2rouge need to be installed for for calculating ROUGE scores.

Citation

You may cite our paper as follows:

@inproceedings{zhu2023probing,
  title={Probing Bilingual Guidance for Cross-Lingual Summarization},
  author={Zhu, Dawei and Wu, Wenhao and Li, Sujian},
  booktitle={CCF International Conference on Natural Language Processing and Chinese Computing},
  pages={749--760},
  year={2023},
  organization={Springer}
}

Contact

If you have any questions, feel free to open an issue, or contact [email protected];

biguid's People

Contributors

dwzhu-pku avatar

Stargazers

Yifan Song avatar Feifan Song avatar  avatar Ce Zheng avatar

Watchers

 avatar

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.