{"id":26453359,"url":"https://github.com/arthur87/kampyo","last_synced_at":"2025-03-18T18:57:55.749Z","repository":{"id":281360328,"uuid":"941356646","full_name":"arthur87/kampyo","owner":"arthur87","description":"kampyo is a library for conveniently manipulating Cabocha and Mecab.","archived":false,"fork":false,"pushed_at":"2025-03-18T13:44:13.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T14:35:19.245Z","etag":null,"topics":["cabocha","japansese","mecab","ruby"],"latest_commit_sha":null,"homepage":"https://www.daispot.com","language":"Ruby","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/arthur87.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-02T04:56:01.000Z","updated_at":"2025-03-18T13:44:18.000Z","dependencies_parsed_at":"2025-03-08T15:38:21.199Z","dependency_job_id":null,"html_url":"https://github.com/arthur87/kampyo","commit_stats":null,"previous_names":["arthur87/kampyo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthur87%2Fkampyo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthur87%2Fkampyo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthur87%2Fkampyo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthur87%2Fkampyo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arthur87","download_url":"https://codeload.github.com/arthur87/kampyo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244287790,"owners_count":20428890,"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":["cabocha","japansese","mecab","ruby"],"created_at":"2025-03-18T18:57:55.316Z","updated_at":"2025-03-18T18:57:55.736Z","avatar_url":"https://github.com/arthur87.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# kampyo\n\n[![Gem Version](https://badge.fury.io/rb/kampyo.svg)](https://badge.fury.io/rb/kampyo)\n\nkampyo is a library for conveniently manipulating Cabocha and Mecab.\n\nkampyo has its own analysis function.\n\nUnique features already implemented are subject and predicate, and stylistic inference.\n\n# Guide\n\nBasic usage with Cabocha.\n\n```\ntext = Kampyo::Text.new\ntext.cabocha_parser(\"今日は雨です\")\n```\n\nYou will get the following result.\n\n```\n{:chunks=\u003e[{:id=\u003e1, :link=\u003e2, :score=\u003e0.0}, {:id=\u003e2, :link=\u003e-1, :score=\u003e0.0}],\n :tokens=\u003e\n  [{:id=\u003e1, :chunk=\u003e1, :surface=\u003e\"今日\", :feature1=\u003e\"名詞\", :feature2=\u003e\"副詞可能\", :baseform=\u003e\"今日\", :reading=\u003e\"キョウ\", :ext_reading=\u003enil},\n   {:id=\u003e2, :chunk=\u003e1, :surface=\u003e\"は\", :feature1=\u003e\"助詞\", :feature2=\u003e\"係助詞\", :baseform=\u003e\"は\", :reading=\u003e\"ハ\", :ext_reading=\u003enil},\n   {:id=\u003e3, :chunk=\u003e2, :surface=\u003e\"雨\", :feature1=\u003e\"名詞\", :feature2=\u003e\"一般\", :baseform=\u003e\"雨\", :reading=\u003e\"アメ\", :ext_reading=\u003enil},\n   {:id=\u003e4, :chunk=\u003e2, :surface=\u003e\"です\", :feature1=\u003e\"助動詞\", :feature2=\u003e\"*\", :baseform=\u003e\"です\", :reading=\u003e\"デス\", :ext_reading=\u003enil}]}\n```\n\nGuess the subject, predicate and sentence system.\n\n```\ntext = Kampyo::Text.new\ntext.analysis(text.cabocha_parser(\"今日は雨です\"))\n```\n\nYou will get the following result.\n\n```\n{:subject=\u003e{:id=\u003e1, :chunk=\u003e1, :surface=\u003e\"今日\", :feature1=\u003e\"名詞\", :feature2=\u003e\"副詞可能\", :baseform=\u003e\"今日\", :reading=\u003e\"キョウ\", :ext_reading=\u003enil},\n :predicate=\u003e{:id=\u003e3, :chunk=\u003e2, :surface=\u003e\"雨\", :feature1=\u003e\"名詞\", :feature2=\u003e\"一般\", :baseform=\u003e\"雨\", :reading=\u003e\"アメ\", :ext_reading=\u003enil},\n :tod=\u003e\"断定\"}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthur87%2Fkampyo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farthur87%2Fkampyo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthur87%2Fkampyo/lists"}