{"id":18746424,"url":"https://github.com/ownthink/evaluation","last_synced_at":"2025-04-12T22:15:13.248Z","repository":{"id":54481792,"uuid":"163831767","full_name":"ownthink/evaluation","owner":"ownthink","description":"各大中文分词性能评测","archived":false,"fork":false,"pushed_at":"2019-02-10T09:15:18.000Z","size":28684,"stargazers_count":157,"open_issues_count":4,"forks_count":28,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-12T22:15:06.868Z","etag":null,"topics":["cws"],"latest_commit_sha":null,"homepage":"https://www.ownthink.com/","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/ownthink.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}},"created_at":"2019-01-02T11:20:56.000Z","updated_at":"2025-03-23T00:05:50.000Z","dependencies_parsed_at":"2022-08-13T17:20:19.197Z","dependency_job_id":null,"html_url":"https://github.com/ownthink/evaluation","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/ownthink%2Fevaluation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ownthink%2Fevaluation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ownthink%2Fevaluation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ownthink%2Fevaluation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ownthink","download_url":"https://codeload.github.com/ownthink/evaluation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248637795,"owners_count":21137538,"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":["cws"],"created_at":"2024-11-07T16:25:26.755Z","updated_at":"2025-04-12T22:15:13.226Z","avatar_url":"https://github.com/ownthink.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 中文分词性能对比\n\u003e\u003e\u003e 以下分词工具均能在Python环境中直接调用（排名不分先后）。\n\n* jieba（结巴分词）                                      免费使用\n* HanLP（汉语言处理包）                           免费使用\n* SnowNLP（中文的类库）                          免费使用\n* FoolNLTK（中文处理工具包）                  免费使用\n* Jiagu（甲骨NLP）                                      免费使用\n* pyltp（哈工大语言云）                              商用需要付费\n* THULAC（清华中文词法分析工具包）     商用需要付费\n* NLPIR（汉语分词系统）                             付费使用\n\n分词工具使用方式见[Tutorial](Tutorial.md)。每个分词工具可能有多种分词模式，本文所对比的为默认分词模式。\n\n---\n### 计算公式：\n![公式](images/1.png)\n---\n\n### 使用方式：\n```shell\npip install jieba\npip install pyhanlp\npip install snownlp\npip install foolnltk\npip3 install jiagu==0.1.2\npip install pyltp      # 需要下载模型，模型地址见上诉Tutorial教程，模型所放的路径与Tutorial同\npip install thulac\npip install pynlpir    # 安装好后需要使用证书，见上诉Tutorial教程\n\ngit clone https://github.com/ownthink/evaluation.git\ncd evaluation\npython3 test.py   # 测试工具是否能够使用\npython3 eval.py  # 测试（时间较长）\n```\n\n### 测试集：\n* msr\n* pku\t\t\n* other\n\n1. msr测试结果\n\n![msr](images/2.png)\n\n2. pku测试结果\n\n![pku](images/3.png)\n\n3. other测试结果\n\n![other](images/4.png)\n\n4. 时间测试结果\n\n![time](images/5.png)\n\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fownthink%2Fevaluation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fownthink%2Fevaluation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fownthink%2Fevaluation/lists"}