{"id":16269270,"url":"https://github.com/thinkwee/word_segment","last_synced_at":"2025-08-01T10:39:47.613Z","repository":{"id":79907462,"uuid":"166157115","full_name":"thinkwee/Word_Segment","owner":"thinkwee","description":"中分分词工具","archived":false,"fork":false,"pushed_at":"2019-01-17T06:58:21.000Z","size":6181,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T11:33:36.922Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thinkwee.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":"2019-01-17T03:55:42.000Z","updated_at":"2019-01-20T15:13:49.000Z","dependencies_parsed_at":"2023-05-04T14:31:21.372Z","dependency_job_id":null,"html_url":"https://github.com/thinkwee/Word_Segment","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/thinkwee%2FWord_Segment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkwee%2FWord_Segment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkwee%2FWord_Segment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkwee%2FWord_Segment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinkwee","download_url":"https://codeload.github.com/thinkwee/Word_Segment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247867365,"owners_count":21009240,"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-10-10T18:07:52.481Z","updated_at":"2025-04-08T15:17:37.599Z","avatar_url":"https://github.com/thinkwee.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Word_Segment\n- 中分分词工具\n- 实现前向、后向、Ngram最大概率切分\n- 可以自行扩充百度、头条、搜狗或者细分领域切分语料，存为training_more.utf8，格式同默认使用的微软语料msr_training.utf8\n- 为了准确率做了分句，速度较慢，i7-8700环境下，分词速度约77000字每秒\n- 微软测试集F值0.944，北大测试集F值0.883\n- 附评测脚本，详见http://sighan.cs.uchicago.edu/bakeoff2005/\n- python main.py \n  - --more=0，默认使用微软训练集，可使用training_more.utf8自定义训练集\n  - --save=1，默认训练一次，保存ngram词典\n  - --method='MP'，默认使用最大概率，可选'FMM'以及'BMM'\n  - --path='./test.txt'，带分词文件路径\n- 训练完之后可注释掉main.py中的segmentor.build_dic(save)，直接分词\n- 分词作业，可以实用，请勿抄袭\n- 依赖包：collections,tqdm,pickle","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkwee%2Fword_segment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkwee%2Fword_segment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkwee%2Fword_segment/lists"}