{"id":24064370,"url":"https://github.com/nusnlp/esr","last_synced_at":"2025-04-23T18:43:38.638Z","repository":{"id":43917854,"uuid":"404588662","full_name":"nusnlp/esr","owner":"nusnlp","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-24T12:13:56.000Z","size":36,"stargazers_count":11,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T02:23:15.014Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/nusnlp.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}},"created_at":"2021-09-09T04:47:01.000Z","updated_at":"2024-05-28T00:31:09.000Z","dependencies_parsed_at":"2022-09-22T08:30:57.339Z","dependency_job_id":null,"html_url":"https://github.com/nusnlp/esr","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/nusnlp%2Fesr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nusnlp%2Fesr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nusnlp%2Fesr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nusnlp%2Fesr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nusnlp","download_url":"https://codeload.github.com/nusnlp/esr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250493970,"owners_count":21439906,"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":[],"created_at":"2025-01-09T10:24:55.550Z","updated_at":"2025-04-23T18:43:38.616Z","avatar_url":"https://github.com/nusnlp.png","language":"Python","readme":"# Improved Word Sense Disambiguation with Enhanced Sense Representations\n\n[![PWC](https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/improved-word-sense-disambiguation-with/word-sense-disambiguation-on-supervised)](https://paperswithcode.com/sota/word-sense-disambiguation-on-supervised?p=improved-word-sense-disambiguation-with)\n\nThis repository contains codes and scripts to build enhanced sense representations for word sense disambiguation.\n\nIf you use this code for your work, please cite this [paper](https://aclanthology.org/2021.findings-emnlp.365.pdf):\n```\n@inproceedings{song-etal-2021-improved-word,\n    title = \"Improved Word Sense Disambiguation with Enhanced Sense Representations\",\n    author = \"Song, Yang  and\n      Ong, Xin Cai  and\n      Ng, Hwee Tou  and\n      Lin, Qian\",\n    booktitle = \"Findings of the Association for Computational Linguistics: EMNLP 2021\",\n    year = \"2021\",\n    url = \"https://aclanthology.org/2021.findings-emnlp.365\",\n    pages = \"4311--4320\"\n}\n```\n\nRequirements\n------------\n\n* python==3.8.8\n* pytorch==1.9.0\n* transformers==4.6.1\n* nltk==3.6.2\n\nDownloading Datasets\n------------\n\nYou need to download the following datasets:\n\n * [WSD Evaluation Framework](http://lcl.uniroma1.it/wsdeval)\n * [UFSAC](https://drive.google.com/file/d/1Oigo3kzRosz2VjyA44vpJZ58tDFyLRMO)\n * [FEWS](https://nlp.cs.washington.edu/fews/)\n\nSetting up variables\n------------\n\nYou need to modify `script/config.sh` according to your environment.\nSet `data` variable to the top directory where all the datasets are stored.\n\nProcessing FEWS\n------------\n\n```\nbash experiment/fews/run.sh\n```\n\nUsing trained models\n------------\n\nYou can train the models from scratch.\nAlternatively, you can use our [trained models](https://drive.google.com/file/d/1c8yooOoXsnIgJi0-To7xKNmYU-CugaeL/view?usp=sharing).\n\nRunning Experiments\n------------\n\nFor ESR on SemCor with `roberta-base`:\n```\nbash experiment/esr/roberta-base/dataset_semcor/sd_42/run.sh\n```\n\nFor ESR on SemCor with `roberta-large`:\n```\nbash experiment/esr/roberta-large/dataset_semcor/sd_42/run.sh\n```\n\nFor ESR on SemCor and WNGC with `roberta-base`:\n```\nbash experiment/esr/roberta-base/dataset_semcor_wngc/sd_42/run.sh\n```\n\nFor ESR on SemCor and WNGC with `roberta-large`:\n```\nbash experiment/esr/roberta-large/dataset_semcor_wngc/sd_42/run.sh\n```\n\nFor ESR on FEWS with `roberta-base`:\n```\nbash experiment/esr/roberta-base/dataset_fews/sd_42/run.sh\n```\n\nFor ESR on FEWS with `roberta-large`:\n```\nbash experiment/esr/roberta-large/dataset_fews/sd_42/run.sh\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnusnlp%2Fesr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnusnlp%2Fesr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnusnlp%2Fesr/lists"}