{"id":13754342,"url":"https://github.com/dqwang122/MLROUGE","last_synced_at":"2025-05-09T22:31:53.651Z","repository":{"id":134650632,"uuid":"415830335","full_name":"dqwang122/MLROUGE","owner":"dqwang122","description":"ROUGE for multilingual Summarization","archived":false,"fork":false,"pushed_at":"2021-10-11T08:56:36.000Z","size":211,"stargazers_count":23,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-16T07:33:22.799Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dqwang122.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}},"created_at":"2021-10-11T07:55:38.000Z","updated_at":"2024-08-16T08:50:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"3b51c761-defc-41c1-ab74-c45d3e997021","html_url":"https://github.com/dqwang122/MLROUGE","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/dqwang122%2FMLROUGE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dqwang122%2FMLROUGE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dqwang122%2FMLROUGE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dqwang122%2FMLROUGE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dqwang122","download_url":"https://codeload.github.com/dqwang122/MLROUGE/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253335796,"owners_count":21892735,"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":"2024-08-03T09:01:55.540Z","updated_at":"2025-05-09T22:31:48.625Z","avatar_url":"https://github.com/dqwang122.png","language":"Perl","funding_links":[],"categories":["NLP语料和数据集"],"sub_categories":["其他_文本生成、文本对话"],"readme":"# ROUGE for Multilingual Summarization\n\nSince the original summarization metric [ROUGE](https://aclanthology.org/W04-1013/) is made only for English, we follow the method of [Hu et al.](https://aclanthology.org/D15-1229.pdf) and map words in other languages to numbers.\n\nLanguages without spaces (eg. Chinese, Japanese) will be segmented by characters and others will be split by spaces. For example, the Chinese text is split by characters, and the English words and numbers will be split by space.\n\n```\n[Input] Surface Phone将装载Windows 10 (The Surface Phone will be loaded with Windows 10)\n[Segmentation] surface/phone/将/装/载/windows/10\n```\n\n## Install\n\n``` shell\n# install dependencies\npip install -r requirements.txt\n\n# export environment paths\nexport PYROUGE_HOME_DIR=$(pwd)/ROUGE-1.5.5\nexport PYROUGE_TEMP_PATH=.\n\n# add permission\nchmod +x $PYROUGE_HOME_DIR/ROUGE-1.5.5.pl\n```\n\n## Usage\nEach line in candidate/reference file should be a summary in the language ('-l') that consisting of sentences split by the delimiter (-d). '-t' indicates whether the text needs to be tokenized.\n\n```\npython3 calRouge.py -c example/candidate.txt -r example/reference.txt -l zh -d \"\u003cq\u003e\" -t\n```\n\n## ROUGE\nIf you have problem in using ROUGE, you can check the complete installation commands.\n\n``` shell\nsudo apt-get install libxml-perl libxml-dom-perl\npip install git+git://github.com/bheinzerling/pyrouge\nexport PYROUGE_HOME_DIR=the/path/to/RELEASE-1.5.5\npyrouge_set_rouge_path $PYROUGE_HOME_DIR\nchmod +x $PYROUGE_HOME_DIR/ROUGE-1.5.5.pl\n```\n\nWe have put the RELEASE-1.5.5 in the directory 'ROUGE-1.5.5'. You can also download [here](https://github.com/andersjo/pyrouge/tree/master/tools/ROUGE-1.5.5) by yourself. Remember to build Wordnet 2.0 instead of 1.6 in RELEASE-1.5.5/data:\n\n```shell\n# remove old files\nrm $PYROUGE_HOME_DIR/data/WordNet-2.0-Exceptions/WordNet-2.0.exc.db\nrm $PYROUGE_HOME_DIR/data/WordNet-2.0.exc.db\n\n# create new files by yourself\ncd $PYROUGE_HOME_DIR/data/WordNet-2.0-Exceptions/\nperl ./buildExeptionDB.pl . exc WordNet-2.0.exc.db\ncd ../\nln -s WordNet-2.0-Exceptions/WordNet-2.0.exc.db WordNet-2.0.exc.db\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdqwang122%2FMLROUGE","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdqwang122%2FMLROUGE","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdqwang122%2FMLROUGE/lists"}