{"id":14966187,"url":"https://github.com/titsuki/raku-mecab","last_synced_at":"2025-10-25T16:30:34.218Z","repository":{"id":53172083,"uuid":"72025364","full_name":"titsuki/raku-MeCab","owner":"titsuki","description":"A Raku bindings for MeCab (i.e. libmecab)","archived":false,"fork":false,"pushed_at":"2025-01-05T13:42:12.000Z","size":113,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T07:51:27.801Z","etag":null,"topics":["libmecab","mecab","perl6","raku","rakulang","zef"],"latest_commit_sha":null,"homepage":"","language":"Raku","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/titsuki.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","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-10-26T17:05:01.000Z","updated_at":"2025-01-05T13:42:14.000Z","dependencies_parsed_at":"2023-01-29T15:30:42.666Z","dependency_job_id":null,"html_url":"https://github.com/titsuki/raku-MeCab","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titsuki%2Fraku-MeCab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titsuki%2Fraku-MeCab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titsuki%2Fraku-MeCab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titsuki%2Fraku-MeCab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/titsuki","download_url":"https://codeload.github.com/titsuki/raku-MeCab/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238174090,"owners_count":19428624,"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":["libmecab","mecab","perl6","raku","rakulang","zef"],"created_at":"2024-09-24T13:35:58.627Z","updated_at":"2025-10-25T16:30:33.873Z","avatar_url":"https://github.com/titsuki.png","language":"Raku","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Actions Status](https://github.com/titsuki/raku-MeCab/workflows/test/badge.svg)](https://github.com/titsuki/raku-MeCab/actions)\n\nNAME\n====\n\nMeCab - A Raku bindings for libmecab ( http://taku910.github.io/mecab/ )\n\nSYNOPSIS\n========\n\nEXAMPLE 1\n---------\n\n    use MeCab;\n    use MeCab::Tagger;\n\n    my Str $text = \"すもももももももものうち。\";\n    my $mecab-tagger = MeCab::Tagger.new('-C');\n    loop ( my MeCab::Node $node = $mecab-tagger.parse-tonode($text); $node; $node = $node.next ) {\n           say ($node.surface, $node.feature).join(\"\\t\");\n    }\n\n    # OUTPUT«\n    #         BOS/EOS,*,*,*,*,*,*,*,*\n    # すもも  名詞,一般,*,*,*,*,すもも,スモモ,スモモ\n    # も      助詞,係助詞,*,*,*,*,も,モ,モ\n    # もも    名詞,一般,*,*,*,*,もも,モモ,モモ\n    # も      助詞,係助詞,*,*,*,*,も,モ,モ\n    # もも    名詞,一般,*,*,*,*,もも,モモ,モモ\n    # の      助詞,連体化,*,*,*,*,の,ノ,ノ\n    # うち    名詞,非自立,副詞可能,*,*,*,うち,ウチ,ウチ\n    # 。      記号,句点,*,*,*,*,。,。,。\n    #         BOS/EOS,*,*,*,*,*,*,*,*\n    # »\n\nEXAMPLE 2\n---------\n\n    use MeCab;\n    use MeCab::Lattice;\n    use MeCab::Tagger;\n    use MeCab::Model;\n\n    my MeCab::Model $model .= new;\n    my MeCab::Tagger $tagger = $model.create-tagger;\n    my MeCab::Lattice $lattice = $model.create-lattice;\n    $lattice.add-request-type(MECAB_NBEST);\n    $lattice.sentence(\"今日も\");\n\n    if $tagger.parse($lattice) {\n       say $lattice.nbest-tostr(2);\n    }\n\n    # OUTPUT«\n    # 今日    名詞,副詞可能,*,*,*,*,今日,キョウ,キョー\n    # も      助詞,係助詞,*,*,*,*,も,モ,モ\n    # EOS\n    # 今日    名詞,副詞可能,*,*,*,*,今日,コンニチ,コンニチ\n    # も      助詞,係助詞,*,*,*,*,も,モ,モ\n    # EOS\n    # »\n\nDESCRIPTION\n===========\n\nMeCab is a Raku bindings for libmecab ( http://taku910.github.io/mecab/ ).\n\nNOTICE\n======\n\nCOMPATIBILITY\n-------------\n\nMeCab currently doesn't support Windows. It supports Linux/Unix or Mac OS X.\n\nBUILDING MeCab\n--------------\n\nMeCab depends on the following:\n\n  * wget\n\n  * mecab-0.996\n\n  * mecab-ipadic-2.7.0-20070801\n\nOnce the build starts, it automatically downloads `mecab-0.996` and `mecab-ipadic-2.7.0-20070801` with `wget` and installs these stuffs under the `$HOME/.p6mecab` directory, where `$HOME` is your home directory.\n\nUse 3rd-party dictionary\n========================\n\nmecab-ipadic-neologd\n--------------------\n\n  * Step1: download and install neologd\n\nExample:\n\n    $ git clone --depth 1 https://github.com/neologd/mecab-ipadic-neologd.git\n    $ cd mecab-ipadic-neologd\n    $ export PATH=$HOME/.p6mecab/bin:$PATH\n    $ ./bin/install-mecab-ipadic-neologd -p $HOME/.p6mecab/lib/mecab/dic/ipadic-neologd\n\n  * Step2: Use .new(:dicdir(PATH_TO_THE_DIR))\n\nExample:\n\n    use MeCab;\n    use MeCab::Tagger;\n\n    my Str $text = \"トランプ大統領 ワシントンで大規模軍事パレードを指示\";\n    my $mecab-tagger = MeCab::Tagger.new(:dicdir(\"$*HOME/.p6mecab/lib/mecab/dic/ipadic-neologd\"));\n    loop ( my MeCab::Node $node = $mecab-tagger.parse-tonode($text); $node; $node = $node.next ) {\n           say ($node.surface, $node.feature).join(\"\\t\");\n    }\n\n    # OUTPUT«\n    #         BOS/EOS,*,*,*,*,*,*,*,*\n    # トランプ大統領  名詞,固有名詞,人名,一般,*,*,ドナルド・トランプ,トランプダイトウリョウ,トランプダイトウリョー\n    # ワシントン      名詞,固有名詞,地域,一般,*,*,ワシントン,ワシントン,ワシントン\n    # で      助詞,格助詞,一般,*,*,*,で,デ,デ\n    # 大規模  名詞,一般,*,*,*,*,大規模,ダイキボ,ダイキボ\n    # 軍事パレード    名詞,固有名詞,一般,*,*,*,軍事パレード,グンジパレード,グンジパレード\n    # を      助詞,格助詞,一般,*,*,*,を,ヲ,ヲ\n    # 指示    名詞,サ変接続,*,*,*,*,指示,シジ,シジ\n    #         BOS/EOS,*,*,*,*,*,*,*,*\n    # »\n\nAUTHOR\n======\n\ntitsuki \u003ctitsuki@cpan.org\u003e\n\nCOPYRIGHT AND LICENSE\n=====================\n\nCopyright 2016 titsuki\n\nlibmecab ( http://taku910.github.io/mecab/ ) by Taku Kudo is licensed under the GPL, LGPL or BSD Licenses.\n\nThis library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftitsuki%2Fraku-mecab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftitsuki%2Fraku-mecab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftitsuki%2Fraku-mecab/lists"}