{"id":13413538,"url":"https://github.com/rjohnsondev/golibstemmer","last_synced_at":"2025-03-14T19:32:35.304Z","repository":{"id":4199215,"uuid":"5318484","full_name":"rjohnsondev/golibstemmer","owner":"rjohnsondev","description":"Go bindings for the snowball libstemmer library including porter 2","archived":false,"fork":false,"pushed_at":"2014-06-17T16:04:56.000Z","size":281,"stargazers_count":20,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-25T05:24:12.284Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/rjohnsondev.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}},"created_at":"2012-08-06T19:31:05.000Z","updated_at":"2022-09-27T08:50:18.000Z","dependencies_parsed_at":"2022-09-08T21:21:57.494Z","dependency_job_id":null,"html_url":"https://github.com/rjohnsondev/golibstemmer","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/rjohnsondev%2Fgolibstemmer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjohnsondev%2Fgolibstemmer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjohnsondev%2Fgolibstemmer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjohnsondev%2Fgolibstemmer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rjohnsondev","download_url":"https://codeload.github.com/rjohnsondev/golibstemmer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221498768,"owners_count":16833057,"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-07-30T20:01:42.715Z","updated_at":"2024-10-26T05:31:02.723Z","avatar_url":"https://github.com/rjohnsondev.png","language":"Go","funding_links":[],"categories":["Relational Databases","自然语言处理","Natural Language Processing","\u003cspan id=\"自然语言处理-natural-language-processing\"\u003e自然语言处理 Natural Language Processing\u003c/span\u003e","Microsoft Office","Bot Building"],"sub_categories":["形态分析","Morphological Analyzers","Strings","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","Advanced Console UIs","Uncategorized","暂未分类","暂未分类这些库被放在这里是因为其他类别似乎都不适合。","交流"],"readme":"Go (golang) bindings for libstemmer\n===================================\n\nThis simple library provides Go (golang) bindings for the snowball libstemmer library including the popular porter and porter2 algorithms.\n\nRequirements\n------------\n\nYou'll need the development package of libstemmer, usually this is simply a matter of:\n\n    sudo apt-get install libstemmer-dev\n\n... or you might need to [install it from source](http://snowball.tartarus.org/).\n\nInstallation\n------------\n\nFirst, ensure you have your GOPATH env variable set to the root of your Go project:\n\n    export GOPATH=`pwd`\n    export PATH=$PATH:$GOPATH/bin\n\nThen this cute statement should do the trick:\n\n    go get github.com/rjohnsondev/golibstemmer\n\nUsage\n-----\n\nBasic usage:\n\n    package main\n\n    import \"github.com/rjohnsondev/golibstemmer\"\n    import \"fmt\"\n    import \"os\"\n\n    func main() {\n        s, err := stemmer.NewStemmer(\"english\")\n        defer s.Close()\n        if err != nil {\n            fmt.Println(\"Error creating stemmer: \"+err.Error())\n            os.Exit(1)\n        }\n        word := s.StemWord(\"happy\")\n        fmt.Println(word)\n    }\n\nTo get a list of supported stemming algorithms:\n\n    list := stemmer.GetSupportedLanguages()\n\nTesting\n-------\n\nYou can execute the basic included tests with:\n\n    go test\n\nIf you have issues, double check you've installed the libstemmer development library.\n\nIf you still have issues, let me know!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjohnsondev%2Fgolibstemmer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frjohnsondev%2Fgolibstemmer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjohnsondev%2Fgolibstemmer/lists"}