{"id":37023814,"url":"https://github.com/yizhiru/thulac4j","last_synced_at":"2026-01-14T02:52:03.572Z","repository":{"id":57735361,"uuid":"83740968","full_name":"yizhiru/thulac4j","owner":"yizhiru","description":"Chinese Word Segmentation Tool, THULAC的Java实现.","archived":false,"fork":false,"pushed_at":"2021-04-12T06:10:51.000Z","size":18282,"stargazers_count":84,"open_issues_count":0,"forks_count":31,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-08-07T20:25:37.407Z","etag":null,"topics":["chinese-word-segmentation","thulac"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/yizhiru.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":"2017-03-03T01:00:21.000Z","updated_at":"2025-01-22T02:57:42.000Z","dependencies_parsed_at":"2022-08-23T17:20:22.701Z","dependency_job_id":null,"html_url":"https://github.com/yizhiru/thulac4j","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/yizhiru/thulac4j","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yizhiru%2Fthulac4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yizhiru%2Fthulac4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yizhiru%2Fthulac4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yizhiru%2Fthulac4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yizhiru","download_url":"https://codeload.github.com/yizhiru/thulac4j/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yizhiru%2Fthulac4j/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408786,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["chinese-word-segmentation","thulac"],"created_at":"2026-01-14T02:52:02.832Z","updated_at":"2026-01-14T02:52:03.552Z","avatar_url":"https://github.com/yizhiru.png","language":"Java","funding_links":[],"categories":["人工智能"],"sub_categories":["自然语言处理"],"readme":"# thulac4j\n\nthulac4j是[THULAC](http://thulac.thunlp.org/)的高效Java 8实现，具有分词速度快、准、强的特点；支持\n\n- 自定义词典\n- 繁体转简体\n- 停用词过滤\n\n\n## 使用示例\n\n在项目中使用thulac4j，添加依赖（请使用最新版本）：\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eio.github.yizhiru\u003c/groupId\u003e\n  \u003cartifactId\u003ethulac4j\u003c/artifactId\u003e\n  \u003cversion\u003e3.1.2\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nthulac4j支持中文分词与词性标注，使用示例如下：\n\n\n```java\nString sentence = \"滔滔的流水，向着波士顿湾无声逝去\";\nList\u003cString\u003e words = Segmenter.segment(sentence);\n// [滔滔, 的, 流水, ，, 向着, 波士顿湾, 无声, 逝去]\n\nPOSTagger pos = new POSTagger(\"models/model_c_model.bin\", \"models/model_c_dat.bin\");\nList\u003cSegItem\u003e words = pos.tagging(sentence);\n// [滔滔/a, 的/u, 流水/n, ，/w, 向着/p, 波士顿湾/ns, 无声/v, 逝去/v]\n```\n\n模型数据较大，没有放在jar包与源码。训练模型下载及更多使用说明，请参看[Wiki](https://github.com/yizhiru/thulac4j/wiki).\n\n\n最后感谢THUNLP实验室！\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyizhiru%2Fthulac4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyizhiru%2Fthulac4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyizhiru%2Fthulac4j/lists"}