{"id":16296899,"url":"https://github.com/windomz/gcws","last_synced_at":"2025-10-03T13:53:33.238Z","repository":{"id":83794822,"uuid":"120084169","full_name":"WindomZ/gcws","owner":"WindomZ","description":"gcws is CWS(Chinese Word Segmentation) for golang - 一个开源中文分词集成","archived":false,"fork":false,"pushed_at":"2018-05-04T17:25:46.000Z","size":20,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T07:42:01.693Z","etag":null,"topics":["chinese-word-segmentation","cws"],"latest_commit_sha":null,"homepage":"","language":"Go","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/WindomZ.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":"2018-02-03T11:14:52.000Z","updated_at":"2021-09-15T17:16:48.000Z","dependencies_parsed_at":"2023-07-12T14:45:37.099Z","dependency_job_id":null,"html_url":"https://github.com/WindomZ/gcws","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/WindomZ%2Fgcws","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fgcws/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fgcws/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fgcws/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WindomZ","download_url":"https://codeload.github.com/WindomZ/gcws/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248049957,"owners_count":21039299,"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":["chinese-word-segmentation","cws"],"created_at":"2024-10-10T20:24:21.090Z","updated_at":"2025-10-03T13:53:28.194Z","avatar_url":"https://github.com/WindomZ.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gcws\n\n[![Build Status](https://travis-ci.org/WindomZ/gcws.svg?branch=master)](https://travis-ci.org/WindomZ/gcws)\n[![Coverage Status](https://coveralls.io/repos/github/WindomZ/gcws/badge.svg?branch=master)](https://coveralls.io/github/WindomZ/gcws?branch=master)\n[![Go Report Card](https://goreportcard.com/badge/github.com/WindomZ/gcws)](https://goreportcard.com/report/github.com/WindomZ/gcws)\n[![GoDoc](https://godoc.org/github.com/WindomZ/gcws?status.svg)](https://godoc.org/github.com/WindomZ/gcws)\n\n\u003e gcws是golang版本的CWS(Chinese Word Segmentation) - 一个开源中文分词集成适配管理器\n\n[English](README_en.md)\n\n## 安装\n```bash\ngo get github.com/WindomZ/gcws/...\n```\n\n## 支持\n- [x] [sego](https://github.com/WindomZ/gcws/tree/master/sego) - Go中文分词，用双数组trie（Double-Array Trie）实现[[GitHub]](https://github.com/huichen/sego)\n- [x] [jieba](https://github.com/WindomZ/gcws/tree/master/jieba) - \"结巴\"中文分词的Golang版本[[GitHub]](https://github.com/yanyiwu/gojieba)\n- [x] [cwsharp](https://github.com/WindomZ/gcws/tree/master/cwsharp) - Golang中文分词库，支持多种分词模式，支持自定义字典和扩展[[GitHub]](https://github.com/zhengchun/cwsharp-go)\n- [x] [segment](https://github.com/WindomZ/gcws/tree/master/segment) - golang 版中文分词包, inspired from 盘古分词[[GitHub]](https://github.com/WindomZ/gosegment)\n- [x] [gse](https://github.com/WindomZ/gcws/tree/master/gse) - Go 语言高效分词, 支持英文、中文、日文等[[GitHub]](https://github.com/go-ego/gse)\n\n## 用法\n导入\n```\nimport (\n    \"github.com/WindomZ/gcws\"\n)\n```\n\n初始化(以`jieba`为例)\n```\nimport (\n    _ \"github.com/WindomZ/gcws/jieba\"\n)\n...\ncws, err := gcws.NewCWS(\"jieba\")\n```\n\n简单易用\n```\ncws.Tokenize(\"喜欢就坚持，爱就别放弃\") // 返回[]string{...}\n```\n\n## 模式\n- ModeDefault - 默认分词模式\n- ModeSearch - 搜索分词模式，`sego`, `jieba`, `segment`, `gse`支持\n- ModeFast - 快速分词模式，`cwsharp`支持\n- ModeEnglish - 英文分词模式，`sego`, `jieba`支持\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindomz%2Fgcws","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwindomz%2Fgcws","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindomz%2Fgcws/lists"}