GithubHelp home page GithubHelp logo

gabriellin / neural_citation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from timoklein/neural_citation

0.0 1.0 0.0 127.72 MB

Context aware citation recommendation

Python 0.52% Jupyter Notebook 99.48%

neural_citation's Introduction

Neural Citation Network

PyTorch reimplementation of the neural citation network.

Author's source code:
https://github.com/tebesu/NeuralCitationNetwork.

Travis Ebesu, Yi Fang. Neural Citation Network for Context-Aware Citation Recommendation. In Proceedings of the 40th International ACM SIGIR Conference on Research and Development in Information Retrieval, 2017. PDF

Requirements

The neural_citation.yml file contains a list of packages used to implement this model. Of particular importance are:

  • python==3.7.3
  • pytorch==1.1.0
  • torchtext==0.3.1
  • tensorboard==1.14.0
  • spacy==2.1.6
  • gensim==3.8.0
  • nltk==3.4.4
  • pandas==0.25.0
  • tqdm==4.32.2

For training the model it is recommended to use the GPU version of Pytorch instead.

Getting started

Install dependencies and clone the repo. The training notebook contains a training template. The evaluation notebook shows an example of how model evaluations can be run. Note that both training and evaluation functions are optimized for use in notebooks as they use tqdm_notebook progress bars. When running these functions from a script this needs to be changed.

Project structure:

.
├── assets  # experiments in the EACL paper
|   ├── various images # used for the NCN presentation
│   ├── title_to_aut_cited # pickled dictionary: tokenized title -> cited authors
│   └── title_tokenized_to_full # pickled dictionary: tokenized titles -> full cited paper titles
│      
├── docs    # documentation for the ncn modules
|    └── ncn # doc folder for the module
│       └── xxx.html # doc html files
|
├── ncn    # main folder containing the NCN implementation
│   ├── core # contains core data types and constants
│   ├── data # preprocessing pipeline for the dataset
│   ├── evaluation # evaluator class for evaluation and inference
│   ├── model # Neural Citation Network pytorch model
│   └── training # low level pytorch training loops
|
├── runs    # Example tensorboard training log 
│   └── log folders # Folders containing a training run's logs
|       └── train logs # tensorboard log files
|
├── README.md     # This file
├── NCN_evaluation.ipynb # notebook for performing evaluation tasks
├── NCN_presentation.ipynb # presentation given about project, contains small inference demo
├── NCN_training.ipynb # training containing the high level training script
├── generate_dicts.ipynb # notebook to generate title_to_aut_cited and title_tokenized_to_full dicts for inference
└── neural_citation.yml # CPU conda environment

Data

The preprocessed dataset can be found here: https://drive.google.com/open?id=1qwBIXBsWp0ODrm91pVgBOwelJ5baGr-9.
Statistics about the dataset can be found in the NCN_presentation.ipynb file.

Weights

The model trained with the original settings by Ebesu and Fang can be found here: https://drive.google.com/open?id=1mT7kUb415wy0i1raXTPMcrXcWSgRC2pk.

The model trained with our best configuration can be found here: https://drive.google.com/open?id=1xhupsNpSzDSS3_C-IJpMAPnts3kXdg-5.

Results

We provide a writeup containing the detailed results and further information about our setup here: https://www.dropbox.com/s/u694zr24cbuo3ux/NCN_reproducibility.pdf?dl=0.

Use this work

Feel free to use our source code and results.

@article{NCNRepro2020, 
	title={eural Citation Recommendation:  A Reproducibility Study}, 
	author={F{\"a}rber, Michael and Klein, Timo and Sigloch, Joan} 
	year={2020}, 
}

neural_citation's People

Contributors

timoklein avatar josiglo avatar

Watchers

James Cloos 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.