Giter Club home page Giter Club logo

neural-pagerank-wsd's Introduction

Integrating Personalized PageRank into Neural Word Sense Disambiguation

This repo hosts the code necessary to reproduce the results of our EMNLP 2021 paper, Integrating Personalized PageRank into Neural Word Sense Disambiguation, by Ahmed ElSheikh, Michele Bevilacqua and Roberto Navigli.

This repository heavily relies on Simone's code.

How to Cite

@inproceedings{elsheikh-etal-2021-integrating,
    title = "Integrating Personalized PageRank into Neural Word Sense Disambiguation",
    author = "ElSheikh, Ahmed and Bevilacqua, Michele  and Navigli, Roberto",
    year = "2021",
    address = "Online",
    publisher = "Emperical Method for Natural Language Processing",
}

Installation

  • make sure to have miniconda installed. if not, install it

  • It is recommended to create a fresh conda env to use the repo

    - conda create -n wsd_ppr python=3.6.9 pip
    - conda activate wsd_ppr
    - git clone [email protected]:mbevila/neural-pagerank-wsd.git
    - pip install -r requirements.txt
    - pip install torch==1.5.0+cu101 torchvision==0.6.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html
    - pip install torch-sparse torch-scatter -f https://pytorch-geometric.com/whl/torch-1.5.0+cu101.html
  • if it needs APEX to be installed

    git clone https://github.com/NVIDIA/apex
    cd apex
    pip install -v --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./

Datasets

  • WSD Evaluation Framework: contains the SemCor training corpus, along with the evaluation datasets from Senseval and SemEval.

Sense Embeddings

Pre-preprocessed SensEmBERT+LMMS embeddings is needed to train your model:


Train

Run train.sh.

Evaluate

Check out predict_eval_script.sh.


License

This project is released under the CC-BY-NC 4.0 license (see LICENSE.txt). If you use this project, please put a link to this repo.

Acknowledgements

The authors gratefully acknowledge the support of the ERC Consolidator Grant MOUSSE No. 726487 under the European Union's Horizon 2020 research and innovation programme.

neural-pagerank-wsd's People

Contributors

mbevila avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

elsheikh21

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.