{"id":13413567,"url":"https://github.com/dveselov/mystem","last_synced_at":"2025-03-14T19:32:39.064Z","repository":{"id":57481225,"uuid":"66950621","full_name":"dveselov/mystem","owner":"dveselov","description":"CGo bindings to Yandex.Mystem","archived":false,"fork":false,"pushed_at":"2016-10-05T05:53:17.000Z","size":14,"stargazers_count":32,"open_issues_count":0,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-07-31T20:52:34.894Z","etag":null,"topics":["cgo-bindings","linguistics","mystem","russian-specific"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dveselov.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":"2016-08-30T14:55:39.000Z","updated_at":"2024-01-21T16:09:12.000Z","dependencies_parsed_at":"2022-09-26T17:50:43.251Z","dependency_job_id":null,"html_url":"https://github.com/dveselov/mystem","commit_stats":null,"previous_names":["dveselov/go-mystem"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dveselov%2Fmystem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dveselov%2Fmystem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dveselov%2Fmystem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dveselov%2Fmystem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dveselov","download_url":"https://codeload.github.com/dveselov/mystem/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243635551,"owners_count":20322959,"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":["cgo-bindings","linguistics","mystem","russian-specific"],"created_at":"2024-07-30T20:01:43.372Z","updated_at":"2025-03-14T19:32:38.774Z","avatar_url":"https://github.com/dveselov.png","language":"Go","readme":"# go-mystem [![Build Status](https://travis-ci.org/dveselov/mystem.svg?branch=master)](https://travis-ci.org/dveselov/mystem) [![GoDoc](https://godoc.org/github.com/dveselov/mystem?status.svg)](https://godoc.org/github.com/dveselov/mystem) [![Go Report Card](https://goreportcard.com/badge/github.com/dveselov/go-mystem)](https://goreportcard.com/report/github.com/dveselov/mystem) [![Coverage Status](https://coveralls.io/repos/github/dveselov/go-mystem/badge.svg)](https://coveralls.io/github/dveselov/go-mystem)\nCGo bindings to Yandex.Mystem - russian morphology analyzer.\n\n# Install\n```bash\n$ wget https://github.com/yandex/tomita-parser/releases/download/v1.0/libmystem_c_binding.so.linux_x64.zip\n$ unzip libmystem_c_binding.so.linux_x64.zip\n$ sudo cp libmystem_c_binding.so /usr/lib/\n$ sudo ln -s /usr/lib/libmystem_c_binding.so /usr/lib/libmystem_c_binding.so.1\n$ go get -u github.com/dveselov/mystem\n```\n\n# Usage\n```go\npackage main\n\nimport (\n    \"fmt\"\n)\n\nimport \"github.com/dveselov/mystem\"\n\nfunc main() {\n    analyses := mystem.NewAnalyses(\"маша\")\n    defer analyses.Close()\n    fmt.Println(fmt.Sprintf(\"Analyze of '%s':\", \"маша\"))\n    for i := 0; i \u003c analyses.Count(); i++ {\n        lemma := analyses.GetLemma(i)\n        grammemes := lemma.StemGram()\n        fmt.Println(fmt.Sprintf(\"%d. %s - %v\", i+1, lemma.Text(), grammemes))\n    }\n}\n```\nOutput'll looks like this:\n```\nAnalyze of 'маша':\n1. маша - [136 155 191 201]\n2. махать - [137 196 206]\n```\n\n# License\n\nSource code of `go-mystem` is licensed under MIT license, but Yandex.Mystem have their own [EULA](https://yandex.ru/legal/mystem/) (allows commercial use), that you must accept.\n","funding_links":[],"categories":["Natural Language Processing","自然语言处理","Relational Databases","Bot Building","\u003cspan id=\"自然语言处理-natural-language-processing\"\u003e自然语言处理 Natural Language Processing\u003c/span\u003e","Microsoft Office","自然語言處理"],"sub_categories":["Translation","暂未分类","Strings","交流","Advanced Console UIs","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","暂未分类这些库被放在这里是因为其他类别似乎都不适合。","翻译","Uncategorized","高级控制台界面","高級控制台界面"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdveselov%2Fmystem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdveselov%2Fmystem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdveselov%2Fmystem/lists"}