{"id":20700176,"url":"https://github.com/ansjsun/tree_split","last_synced_at":"2025-09-06T15:38:57.929Z","repository":{"id":145024891,"uuid":"12430752","full_name":"ansjsun/tree_split","owner":"ansjsun","description":"Tree-split 搬新家..给各位带来的不便深表歉意","archived":false,"fork":false,"pushed_at":"2016-08-27T14:17:11.000Z","size":41,"stargazers_count":54,"open_issues_count":2,"forks_count":43,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-08-03T00:58:59.239Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/ansjsun.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}},"created_at":"2013-08-28T10:22:00.000Z","updated_at":"2025-06-29T05:27:29.000Z","dependencies_parsed_at":"2023-10-20T17:29:00.981Z","dependency_job_id":null,"html_url":"https://github.com/ansjsun/tree_split","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ansjsun/tree_split","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansjsun%2Ftree_split","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansjsun%2Ftree_split/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansjsun%2Ftree_split/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansjsun%2Ftree_split/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ansjsun","download_url":"https://codeload.github.com/ansjsun/tree_split/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansjsun%2Ftree_split/sbom","scorecard":{"id":198227,"data":{"date":"2025-08-11","repo":{"name":"github.com/ansjsun/tree_split","commit":"f056b71d5f0e14fb715024d588ee1ec518625951"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/18 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-16T22:14:44.858Z","repository_id":145024891,"created_at":"2025-08-16T22:14:44.858Z","updated_at":"2025-08-16T22:14:44.858Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273926549,"owners_count":25192317,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"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":[],"created_at":"2024-11-17T00:33:51.296Z","updated_at":"2025-09-06T15:38:57.846Z","avatar_url":"https://github.com/ansjsun.png","language":"Java","funding_links":[],"categories":["人工智能"],"sub_categories":["自然语言处理"],"readme":"TreeSplitWord 一个tire树结构的分词\n==================\n\n##maven\n\n````\n\u003crepositories\u003e\n\t\t\u003crepository\u003e\n\t\t\t\u003cid\u003emvn-repo\u003c/id\u003e\n\t\t\t\u003curl\u003ehttp://ansjsun.github.io/mvn-repo/\u003c/url\u003e\n\t\t\u003c/repository\u003e\n\t\u003c/repositories\u003e\n\n\t\u003cdependencies\u003e\n        \u003cdependency\u003e\n            \u003cgroupId\u003eorg.ansj\u003c/groupId\u003e\n            \u003cartifactId\u003etree_split\u003c/artifactId\u003e\n            \u003cversion\u003e1.0.1\u003c/version\u003e\n        \u003c/dependency\u003e\n    \u003c/dependencies\u003e\n\n````\nDownload jar\n\n````\nhttps://github.com/ansjsun/mvn-repo/tree/master/org/ansj/tree_split\n````\n\n一个trie树数据结构的分词\n没有什么新意.使用方便\n\n词典结构支持read流.字符.文件各种格式调用简单.支持不定参数\n\n这是个例子欢迎大家使用.我用了好久了应该没有bug的\n\n\u003cpre\u003e\u003ccode\u003e\n\t\t/**\n\t\t * 词典的构造.一行一个词后面是参数.可以从文件读取.可以是read流.\n\t\t */\n\t\tString dic = \"中国\\t1\\tzg\\n人名\\t2\\n中国人民\\t4\\n人民\\t3\\n孙健\\t5\\nCSDN\\t6\\njava\\t7\\njava学习\\t10\\n\";\n\t\tForest forest = Library.makeForest(new BufferedReader(new StringReader(dic)));\n\n\t\t/**\n\t\t * 删除一个单词\n\t\t */\n\t\tLibrary.removeWord(forest, \"中国\");\n\t\t/**\n\t\t * 增加一个新词\n\t\t */\n\t\tLibrary.insertWord(forest, \"中国人\");\n\t\tString content = \"中国人名识别是中国人民的一个骄傲.孙健人民在CSDN中学到了很多最早iteye是java学习笔记叫javaeye但是java123只是一部分\";\n\t\tGetWord udg = forest.getWord(content);\n\n\t\tString temp = null;\n\t\twhile ((temp = udg.getFrontWords()) != null)\n\t\t\tSystem.out.println(temp + \"\\t\\t\" + udg.getParam(1) + \"\\t\\t\" + udg.getParam(2));\n\u003ccode\u003e\u003c/pre\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansjsun%2Ftree_split","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fansjsun%2Ftree_split","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansjsun%2Ftree_split/lists"}