pluskid / rmmseg-cpp

an re-implementation of rmmseg (Chinese word segmentation library for Ruby) in C++
http://rmmseg-cpp.rubyforge.org
157 stars 35 forks source link

When I run $echo "我们都喜欢用 Ruby" | rmmseg, I get an error #3

Open webmagnets opened 11 years ago

webmagnets commented 11 years ago

Here is what the error looks like:

$echo "我们都喜欢用 Ruby" | rmmseg /Users/webmagnets/.rvm/gems/ruby-1.9.3-p327@blt/gems/rmmseg-0.1.6/lib/rmmseg/algorithm.rb:24:in next_token': undefined methodlength' for #<Enumerator: "我们都喜欢用 Ruby\n":each_char> (NoMethodError) from /Users/webmagnets/.rvm/gems/ruby-1.9.3-p327@blt/gems/rmmseg-0.1.6/lib/rmmseg/algorithm.rb:44:in segment' from /Users/webmagnets/.rvm/gems/ruby-1.9.3-p327@blt/gems/rmmseg-0.1.6/lib/rmmseg.rb:12:insegment' from /Users/webmagnets/.rvm/gems/ruby-1.9.3-p327@blt/gems/rmmseg-0.1.6/bin/rmmseg:65:in <top (required)>' from /Users/webmagnets/.rvm/gems/ruby-1.9.3-p327@blt/bin/rmmseg:23:inload' from /Users/webmagnets/.rvm/gems/ruby-1.9.3-p327@blt/bin/rmmseg:23:in `

'

yuanhang commented 11 years ago

Do you realize that you are actually using rmmseg-0.1.6?