{"id":21965840,"url":"https://github.com/genezc/ote-mtl","last_synced_at":"2025-04-24T03:46:42.823Z","repository":{"id":119491057,"uuid":"298962269","full_name":"GeneZC/OTE-MTL","owner":"GeneZC","description":"Code and dataset for EMNLP 2020 paper titled \"A Multi-task Learning Framework for Opinion Triplet Extraction\"","archived":false,"fork":false,"pushed_at":"2022-08-23T06:07:14.000Z","size":1040,"stargazers_count":52,"open_issues_count":1,"forks_count":17,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-24T03:46:37.035Z","etag":null,"topics":["aspect","opinion","sentiment"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GeneZC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-09-27T05:47:30.000Z","updated_at":"2025-04-01T05:33:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"73210a89-29da-4e06-b7f1-693d3aaf1e3b","html_url":"https://github.com/GeneZC/OTE-MTL","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeneZC%2FOTE-MTL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeneZC%2FOTE-MTL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeneZC%2FOTE-MTL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeneZC%2FOTE-MTL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GeneZC","download_url":"https://codeload.github.com/GeneZC/OTE-MTL/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250560003,"owners_count":21450168,"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","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":["aspect","opinion","sentiment"],"created_at":"2024-11-29T12:52:43.538Z","updated_at":"2025-04-24T03:46:42.814Z","avatar_url":"https://github.com/GeneZC.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OTE-MTL\n\n**OTE-MTL** - **M**ulti-**T**ask **L**earning for **O**pinion **T**riplet **E**xtraction\n* Code and preprocessed dataset for [EMNLP 2020](https://2020.emnlp.org/) paper titled \"[A Multi-task Learning Framework for Opinion Triplet Extraction](https://arxiv.org/abs/2010.01512)\" \n* [Chen Zhang](https://genezc.github.io), [Qiuchi Li](https://qiuchili.github.io), [Dawei Song](http://cs.bit.edu.cn/szdw/jsml/js/sdw/index.htm) and [Benyou Wang](https://wabyking.github.io/old).\n\n## Updates\n\n* Feb. 20th, 2021. As is pointed out in our paper, we have noted that [datav1](https://github.com/xuuuluuu/SemEval-Triplet-data/tree/master/ASTE-Data-V1-AAAI2020) used in https://arxiv.org/abs/1911.01616 is rather incomplete and have corrected their mistakes. That is, the data used for our experiments is similar to [datav2](https://github.com/xuuuluuu/SemEval-Triplet-data/tree/master/ASTE-Data-V2-EMNLP2020). However, as is requested by some users and in case of any inconsistencies between our data and datav2, we decide to support the test of our model on datav2. You could just run our model on datav2 with just an additional argument *--v2*.\n\n## Requirements\n\n* Python 3.6\n* PyTorch 1.0.0\n* numpy 1.15.4\n\n## Usage\n\n* Download pretrained GloVe embeddings with this [link](http://nlp.stanford.edu/data/wordvecs/glove.840B.300d.zip) and extract `glove.840B.300d.txt` into `glove/`.\n* Train with command, optional arguments could be found in [train.py](/train.py), **--v2** denotes whether test on datav2\n```bash\npython train.py --model mtl --dataset rest14 [--v2]\n```\n* Infer with [infer.py](/infer.py)\n\n## Task\n\nAn overview of the task opinion triplet extraction (OTE) is given below\n\n![model](/assets/task.png)\n\n OTE is solving the same task proposed in https://arxiv.org/abs/1911.01616. While our work focuses on extracting (aspect term, opinion term, sentiment) opinion triplets (OTs), they extract (aspect term-sentiment pair, opinion term)s. Owing to the minor difference lying in formulations, two drawbacks in the latter formulation are presented: (i) sentiments are determined without accessing opinion terms, (ii) conflicting opinions expressed towards an aspect cannot be predicted.\n\n## Citation\n\nIf you use the code in your paper, please kindly star this repo and cite our paper\n\n```bibtex\n@inproceedings{zhang-etal-2020-multi,\n    title = \"A Multi-task Learning Framework for Opinion Triplet Extraction\",\n    author = \"Zhang, Chen  and\n      Li, Qiuchi  and\n      Song, Dawei  and\n      Wang, Benyou\",\n    booktitle = \"Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: Findings\",\n    month = nov,\n    year = \"2020\",\n    address = \"Online\",\n    publisher = \"Association for Computational Linguistics\",\n    url = \"https://www.aclweb.org/anthology/2020.findings-emnlp.72\",\n    pages = \"819--828\",\n}\n```\n\n## Contact\n\n* For any issues or suggestions about this work, don't hesitate to create an issue or directly contact me via [gene_zhangchen@163.com](mailto:gene_zhangchen@163.com) !\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenezc%2Fote-mtl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgenezc%2Fote-mtl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenezc%2Fote-mtl/lists"}