{"id":17500403,"url":"https://github.com/jun85664396/twitter-korean-text-ruby","last_synced_at":"2026-03-02T22:03:17.458Z","repository":{"id":59158358,"uuid":"42851057","full_name":"jun85664396/twitter-korean-text-ruby","owner":"jun85664396","description":"Ruby interface to twitter-korean-text","archived":false,"fork":false,"pushed_at":"2017-07-21T01:10:24.000Z","size":17181,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-16T16:54:03.873Z","etag":null,"topics":["java","morpheme","ruby","twitter","twkorean"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jun85664396.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-21T07:34:04.000Z","updated_at":"2022-02-09T14:59:03.000Z","dependencies_parsed_at":"2022-09-13T20:10:22.495Z","dependency_job_id":null,"html_url":"https://github.com/jun85664396/twitter-korean-text-ruby","commit_stats":null,"previous_names":["jun85664396/twkorean-ruby"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jun85664396%2Ftwitter-korean-text-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jun85664396%2Ftwitter-korean-text-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jun85664396%2Ftwitter-korean-text-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jun85664396%2Ftwitter-korean-text-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jun85664396","download_url":"https://codeload.github.com/jun85664396/twitter-korean-text-ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250356242,"owners_count":21417053,"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":["java","morpheme","ruby","twitter","twkorean"],"created_at":"2024-10-19T18:09:16.498Z","updated_at":"2026-03-02T22:03:17.363Z","avatar_url":"https://github.com/jun85664396.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twkorean\n[![Build Status](https://travis-ci.org/jun85664396/twitter-korean-text-ruby.svg?branch=master)](https://travis-ci.org/jun85664396/twitter-korean-text-ruby)\n[![Gem Version](https://badge.fury.io/rb/twkorean.svg)](https://badge.fury.io/rb/twkorean)\n## Compatibility\n\nCurrently wraps [open-korean-text 2.0.5](https://github.com/open-korean-text/open-korean-text/releases/tag/open-korean-text-2.0.5) / 현재 이 프로젝트는 [open-korean-text 2.0.5](https://github.com/open-korean-text/open-korean-text/releases/tag/open-korean-text-2.0.5)을 사용중입니다.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'twkorean'\n\nIf you are using Java 7\n\n    gem 'twkorean', \"~\u003e 0.0.5\"\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install twkorean\n\n## Required\n\nTwkorean supports java8+\n\n    $ export JAVA_HOME={Your Path}\n\n## Test\n    \n    $ rake or rspec\n\n## Usage\n\n    describe \"Twkorean\" do\n      text = \"한국어를 처리하는 예시입니닼ㅋㅋㅋㅋㅋ #한국어\"\n      twkorean = Twkorean::TwitterKoreanText.new\n      text = twkorean.normalize(text)\n      tokens = twkorean.tokenize(text)\n    \n      it \"Tokenize\" do\n        p \"#Tokenize\"\n        p twkorean.tokens_to_string_list(tokens)\n        # [\"한국어\", \"를\", \"처리\", \"하는\", \"예시\", \"입니다\", \"ㅋㅋㅋ\", \"#한국어\"]\n        p twkorean.tokens_to_token_list(tokens)\n        # [\n        #    [\"한국어(Noun: 0, 3)\", \"한국어\", \"Noun\", nil, \"0\", \"3\"],\n        #    [\"를(Josa: 3, 1)\", \"를\", \"Josa\", nil, \"3\", \"1\"],\n        #    [\"처리(Noun: 5, 2)\", \"처리\", \"Noun\", nil, \"5\", \"2\"],\n        #    [\"하는(Verb(하다): 7, 2)\", \"하는\", \"Verb\", \"(하다)\", \"7\", \"2\"],\n        #    [\"예시(Noun: 10, 2)\", \"예시\", \"Noun\", nil, \"10\", \"2\"],\n        #    [\"입니다(Adjective(이다): 12, 3)\", \"입니다\", \"Adjective\", \"(이다)\", \"12\", \"3\"],\n        #    [\"ㅋㅋㅋ(KoreanParticle: 15, 3)\", \"ㅋㅋㅋ\", \"KoreanParticle\", nil, \"15\", \"3\"],\n        #    [\"#한국어(Hashtag: 19, 4)\", \"#한국어\", \"Hashtag\", nil, \"19\", \"4\"]\n        # ]\n      end\n    \n      it \"Phrase extraction\" do\n        p \"Phrase extraction\"\n        p twkorean.extract_phrases(tokens)\n        # [\"한국어(Noun: 0, 3)\", \"처리(Noun: 5, 2)\", \"처리하는 예시(Noun: 5, 7)\", \"예시(Noun: 10, 2)\", \"#한국어(Hashtag: 19, 4)\"]\n      end\n    end\n\n## Contributing\n\n1. Fork it ( https://github.com/[my-github-username]/twkorean/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjun85664396%2Ftwitter-korean-text-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjun85664396%2Ftwitter-korean-text-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjun85664396%2Ftwitter-korean-text-ruby/lists"}