Coder Social home page Coder Social logo

bert-gcn-for-paper-citation's Introduction

Introduction

We propose a deep learning based model and well-organized dataset for context aware paper citation recommendation. Our model comprises a document encoder and a context encoder, which uses Graph Convolutional Networks (GCN) layer and Bidirectional Encoder Representations from Transformers (BERT), which is a pretrained model of textual data. By modifying the related PeerRead,AAN dataset, we propose a new dataset called FullTextPeerRead, FullTextANN containing context sentences to cited references and paper metadata.

The code is based on that(BERT, GCN).

Paper

A Context-Aware Citation Recommendation Model with BERT and Graph Convolutional Networks

  • Main Result

Data

There are two types of data, AAN and PeerRead. Both columns are identical.

Header Description
target_id citing paper id
source_id cited paper id
left_citated_text text to the left of the citation tag when citing
right_citated_text text to the right of the citation tag when citing
target_year release target paper year
source_year release source paper year

run_classifier.py

The main script to train bert, bert-gcn model

python run_classifier.py [options]
  • General Parameters:

    • --model (Required): The mode to run the run_classifier.py script in. Possible values: bert or bert_gcn
    • --dataset (Required): The dataset to run the run_classifier.py script in. Possible values: AAN or PeerRead
    • --frequency (Required): Parse datasets more frequently
    • --max_seq_length : Length of cited text to use
    • --gpu : The gpu to run code
  • BERT Parameters: You can refer to it here.

    • --do_train, --do_predict, --data_dir, --vocab_file, --bert_config_file, --init_checkpoint, ...

gcn_pretrain.py

If you want to use bert-gcn you have to run it.

python gcn_pretrain.py [options]

ย 

  • GCN Parameters: You can refer to it here.
    • --gcn_model, --gcn_lr, --gcn_epochs, --gcn_hidden1, --gcn_hidden2, ...

bert-gcn-for-paper-citation's People

Contributors

janguck avatar blissray avatar kaisugi 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.