rmmseg-cpp
rmmseg-cpp copied to clipboard
an re-implementation of rmmseg (Chinese word segmentation library for Ruby) in C++
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 method`length' for # (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:in`segment' from /Users/webmagnets/.rvm/gems/ruby-1.9.3-p327@blt/gems/rmmseg-0.1.6/bin/rmmseg:65:in `' from /Users/webmagnets/.rvm/gems/ruby-1.9.3-p327@blt/bin/rmmseg:23:in`load' from...
``` [2012-07-15 02:51:13] INFO WEBrick 1.3.1 [2012-07-15 02:51:13] INFO ruby 1.9.3 (2012-04-20) [x86_64-linux] [2012-07-15 02:51:13] INFO WEBrick 1.3.1 [2012-07-15 02:51:13] INFO ruby 1.9.3 (2012-04-20) [x86_64-linux] [2012-07-15 02:51:13] INFO WEBrick::HTTPServer#start: pid=1612...
It complains like that: rmmseg.cpp: In function ‘VALUE dic_load_chars(VALUE, VALUE)’: rmmseg.cpp:39: error: ‘struct RString’ has no member named ‘ptr’ rmmseg.cpp: In function ‘VALUE dic_load_words(VALUE, VALUE)’: rmmseg.cpp:54: error: ‘struct RString’ has...