Giter Site home page Giter Site logo

jiayalu123 / copymtl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from windchimeran/copymtl

0.0 1.0 0.0 3.52 MB

AAAI20 "CopyMTL: Copy Mechanism for Joint Extraction of Entities and Relations with Multi-Task Learning"

Python 99.45% Shell 0.55%

copymtl's Introduction

UPDATE: This paper is part of the our EMNLP2020 findings: paper code.

  • Model bias: CopyMTL suffers from the exposure bias problem, which can be solved by our Seq2UMTree.
  • Data bias: NYT dataset is overfitted by SoTA models. This is because 90% test triplets reoccured in the training data.
  • We release OpenJERE toolkit, including multiple baselines and datasets. CopyMTL can be found here!

CopyMTL: Copy Mechanism for Joint Extraction of Entities and Relations with Multi-Task Learning

Paper accepted by AAAI-2020

This is a followup paper of "Extracting Relational Facts by an End-to-End Neural Model with Copy Mechanism" ACL2018 CopyRE

Environment

python3

pytorch 0.4.0 -- 1.3.1

Modify the Data path

This repo initially contain webnlg, you can run the code directly. NYT dataset need to be downloaded and to be placed in proper path. see const.py.

The pre-processed data is avaliable in:

WebNLG dataset: https://drive.google.com/open?id=1zISxYa-8ROe2Zv8iRc82jY9QsQrfY1Vj

NYT dataset: https://drive.google.com/open?id=10f24s9gM7NdyO3z5OqQxJgYud4NnCJg3

Run

python main.py --gpu 0 --mode train --cell lstm --decoder_type one

python main.py --gpu 0 --mode test --cell lstm --decoder_type one

copymtl's People

Contributors

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