Home

Awesome

Jieba for jRuby

Read jieba-analysis(结巴分词) docs for more details: https://github.com/huaban/jieba-analysis

Installing

Add to your Gemfile:

gem 'jieba-jruby'

Then bundle install.

Or install it yourself as:

$ gem install jieba-jruby

Usage

  require 'jieba'

  "Ruby China,对!没错!这里就是 Ruby 社区,目前这里已经是国内最权威的 Ruby 社区,拥有国内所有资深的 Ruby 工程师。".to_tags
  => ["Ruby", "China", "没错", "这里", "就是", "社区", "目前", "已经", "国内", "权威", "拥有", "所有", "资深", "工程师"]

PS. Built and tested on jRuby 1.7.4