SaitoWu / rseg

A Chinese Word Segmentation(中文分词) routine in pure Ruby

Home Page:http://twitter.com/SaitoWu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

About

A Chinese Word Segmentation(中文分词) routine in pure Ruby

http://twitter.com/SaitoWu

License:Other


Languages

Language:Ruby 100.0%