Coder Social home page Coder Social logo

peterhob / paperrobot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eaglew/paperrobot

0.0 0.0 0.0 65.02 MB

Code for PaperRobot: Incremental Draft Generation of Scientific Ideas

Home Page: https://arxiv.org/pdf/1905.07870.pdf

License: MIT License

Python 100.00%

paperrobot's Introduction

PaperRobot: Incremental Draft Generation of Scientific Ideas

Arxiv

Accpeted by 57th Annual Meeting of the Association for Computational Linguistics (ACL 2019)

Table of Contents

Overview

Photo

Requirements

Environment:

  • Pytorch 1.1
  • Python 3.6 CAUTION!! Model might not be saved and loaded properly under Python 3.5

Data:

Quickstart

New paper writing

Preprocessing:

Download and unzip the data_pubmed_writing.zip. Put data folder under the New paper writing folder.

Training

Put the type of data after the --data_path. For example, if you want to train an abstract model, put data/pubmed_abstract after --data_path. Put the model directory after the --model_dp For more other options, please check the code.

python train.py --data_path data/pubmed_abstract --model_dp abstract_model/

Test

Put the finished model path after the --model The test.py will provide the score for test set.

python test.py --data_path data/pubmed_abstract --model abstract_model/memory/best_dev_model.pth.tar

Predict an instance

Put the finished model path after the --model The input.py will provide the prediction for customized input.

python input.py --data_path data/pubmed_abstract --model abstract_model/memory/best_dev_model.pth.tar

Citation

@InProceedings{wang2019paperrobot,
  author = 	"Wang, Qingyun and Huang, Lifu and Jiang, Zhiying and Knight, Kevin and Ji, Heng and Bansal, Mohit and Luan, Yi",
  title = 	"PaperRobot: Incremental Draft Generation of Scientific Ideas",
  booktitle = 	"Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics",
  year = 	"2019"
}

paperrobot's People

Contributors

eaglew 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.