Giter Site home page Giter Site logo

chocowu / lagcn-srl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scofield7419/lagcn-srl

0.0 0.0 0.0 154 KB

Codes for the AAAI 2021 paper: Encoder-Decoder Based Unified Semantic Role Labeling with Label-Aware Syntax

License: GNU General Public License v3.0

Shell 0.25% Python 99.75%

lagcn-srl's Introduction

LAGCN SRL Pointer

This repository includes the code of the Semantic Role Labeling (SRL) Parser with label-aware graph convolutional network (LAGCN) based pointer networks of the AAAI 2021 paper: Encoder-Decoder Based Unified Semantic Role Labeling with Label-Aware Syntax.


Requirement Install

pip install -r requirements.txt

Datasets

Two popular dependency-based SRL datasets.

Download them and put at ./data folds.

Syntax annotation parsing

To prepare the syntactic dependency features, deploy the CoreNLP:

wget https://nlp.stanford.edu/software/stanford-corenlp-latest.zip

nohup java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 8083 -timeout 15000 > 1.log 2>&1 &

See the example data in ./data/demo.

Experiments

Step 1. To train the parser, you need to include the pre-trained word embeddings in the embs folder and run the following script:

./scripts/run_parser.sh <model> <data>

To evaluate the best trained model on the test set, just use the official script to compute the F1 scores:

./scripts/eval.sh <best epoch> <data> <model>

Citation

@inproceedings{FeiGraphSynAAAI21,
  author    = {Hao Fei and Fei Li and Bobo Li and Donghong Ji},
  title     = {Encoder-Decoder Based Unified Semantic Role Labeling with Label-Aware Syntax},
  booktitle = {Proceedings of the AAAI Conference on Artificial Intelligence},
  pages     = {12794--12802},
  year      = {2021},
}

License

The code is released under Apache License 2.0 for Noncommercial use only.

lagcn-srl's People

Contributors

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