Skip to content
A Chinese Word Segmentation(中文分词) routine in pure Ruby
Ruby
Pull request Compare This branch is 10 commits ahead of yzhang:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
dict
lib
.gitignore
LICENSE
README.md
Rakefile
VERSION
rseg.gemspec

README.md

Introduction

Forked from yzhang.

port for ruby19

cut the C/S mode down and push a new dict.hash which is useful.

Usage (not changed)

require 'rubygems'
require 'rseg'
Rseg.segment("需要分词的文章")
=>['需要', '分词', '的', '文章']

Install

Gemfile add:

gem 'rseg', git: "git://github.com/SaitoWu/rseg.git"

have fun!

Something went wrong with that request. Please try again.