{"id":19575982,"url":"https://github.com/scofield7419/lagcn-srl","last_synced_at":"2025-08-10T14:17:31.072Z","repository":{"id":174418456,"uuid":"652212462","full_name":"scofield7419/LAGCN-SRL","owner":"scofield7419","description":"Codes for the AAAI 2021 paper: Encoder-Decoder Based Unified Semantic Role Labeling with Label-Aware Syntax","archived":false,"fork":false,"pushed_at":"2023-06-11T13:47:51.000Z","size":154,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-22T22:54:04.032Z","etag":null,"topics":["nlp","srl","syntax"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scofield7419.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-06-11T12:57:26.000Z","updated_at":"2025-04-05T05:42:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"5696ad59-7f84-422e-ae96-c67db2839c72","html_url":"https://github.com/scofield7419/LAGCN-SRL","commit_stats":null,"previous_names":["scofield7419/lagcn-srl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scofield7419/LAGCN-SRL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scofield7419%2FLAGCN-SRL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scofield7419%2FLAGCN-SRL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scofield7419%2FLAGCN-SRL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scofield7419%2FLAGCN-SRL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scofield7419","download_url":"https://codeload.github.com/scofield7419/LAGCN-SRL/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scofield7419%2FLAGCN-SRL/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269734425,"owners_count":24466632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nlp","srl","syntax"],"created_at":"2024-11-11T06:50:04.316Z","updated_at":"2025-08-10T14:17:31.063Z","avatar_url":"https://github.com/scofield7419.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LAGCN SRL Pointer\nThis repository includes the code of the Semantic Role Labeling (SRL) Parser with label-aware graph convolutional network (LAGCN) based pointer networks\nof the AAAI 2021 paper: [Encoder-Decoder Based Unified Semantic Role Labeling with Label-Aware Syntax](https://ojs.aaai.org/index.php/AAAI/article/view/17514). \n\n\n-------------------\n\n# Requirement Install\n  \n\n```bash\npip install -r requirements.txt\n```\n\n# Datasets\n\n### Two popular dependency-based SRL datasets.\nDownload them and put at `./data` folds. \n\n- [CoNLL09](https://ufal.mff.cuni.cz/conll2009-st/train-dev-data.html)\n- [UPB](https://universalpropositions.github.io/)\n\n\n### Syntax annotation parsing\n\nTo prepare the syntactic dependency features, deploy the CoreNLP:\n\n```bash\nwget https://nlp.stanford.edu/software/stanford-corenlp-latest.zip\n\nnohup java -mx4g -cp \"*\" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 8083 -timeout 15000 \u003e 1.log 2\u003e\u00261 \u0026\n```\n\nSee the example data in [./data/demo](data%2Fdemo).\n\n\n# Experiments\n\nStep 1. To train the parser, you need to include the pre-trained word embeddings in the ``embs`` folder and run the following script:\n\n```bash\n./scripts/run_parser.sh \u003cmodel\u003e \u003cdata\u003e\n```\n\nTo evaluate the best trained model on the test set, just use the official script to compute the F1 scores:\n\n```bash\n./scripts/eval.sh \u003cbest epoch\u003e \u003cdata\u003e \u003cmodel\u003e\n```\n\n\n# Citation\n\n```\n@inproceedings{FeiGraphSynAAAI21,\n  author    = {Hao Fei and Fei Li and Bobo Li and Donghong Ji},\n  title     = {Encoder-Decoder Based Unified Semantic Role Labeling with Label-Aware Syntax},\n  booktitle = {Proceedings of the AAAI Conference on Artificial Intelligence},\n  pages     = {12794--12802},\n  year      = {2021},\n}\n```\n\n\n# License\n\nThe code is released under Apache License 2.0 for Noncommercial use only. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscofield7419%2Flagcn-srl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscofield7419%2Flagcn-srl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscofield7419%2Flagcn-srl/lists"}