{"id":16714253,"url":"https://github.com/flier/mmseg4a","last_synced_at":"2025-03-15T07:11:50.126Z","repository":{"id":2822012,"uuid":"3823991","full_name":"flier/mmseg4a","owner":"flier","description":"MMSeg for Android","archived":false,"fork":false,"pushed_at":"2012-05-19T06:33:57.000Z","size":2676,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T22:09:43.986Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","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/flier.png","metadata":{"files":{"readme":"README.markdown","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":"2012-03-25T12:09:39.000Z","updated_at":"2014-09-20T06:30:07.000Z","dependencies_parsed_at":"2022-08-26T06:20:55.057Z","dependency_job_id":null,"html_url":"https://github.com/flier/mmseg4a","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/flier%2Fmmseg4a","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flier%2Fmmseg4a/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flier%2Fmmseg4a/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flier%2Fmmseg4a/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flier","download_url":"https://codeload.github.com/flier/mmseg4a/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243695589,"owners_count":20332629,"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-12T20:50:05.486Z","updated_at":"2025-03-15T07:11:50.109Z","avatar_url":"https://github.com/flier.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Introduction\n===========\n\nmmseg4a is an Android porting of the [LibMMSeg](http://www.coreseek.cn/opensource/mmseg/) library, which base on the [MMSEG ](http://technology.chtsai.org/mmseg/) algorithm.\n\nUsage\n===========\nYou should load the dictionary first with the [SegmenterManager](https://github.com/flier/mmseg4a/blob/master/src/lu/flier/mmseg4a/SegmenterManager.java) object, and create a [Segmenter](https://github.com/flier/mmseg4a/blob/master/src/lu/flier/mmseg4a/Segmenter.java) object with createSegmenter method, call it's segment method to take the tokens.\n\n~~~~~ java\nSegmenterManager mgr = new DictionaryLoader(DemoActivity.this).load();\nString tokens = mgr.createSegmenter(true).segment(\"这是一段需要分词的中文\").getTokens();\n~~~~~\n\nPlease check the [DemoActivity](https://github.com/flier/mmseg4a/blob/master/demo/src/lu/flier/mmseg4a/DemoActivity.java) class for more details.\n\n\nPerformance\n===========\nYou could run the performance tests in the [demo](https://github.com/flier/mmseg4a/tree/master/demo) folder. \n\n    loaded dictionary in 567ms\n    loaded a sample file with 31458 lines/2761.38 KBs in 5135ms\n    found 1110124 tokens in 29765ms (92.77KB/s, 37296.29 tokens/s)\n\n(HTC DHD with 1G CPU and 768M memory)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflier%2Fmmseg4a","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflier%2Fmmseg4a","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflier%2Fmmseg4a/lists"}