Module: Thulac
- Defined in:
- lib/igo/thulac.rb
Class Method Summary collapse
Class Method Details
.cut(str, text: false) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/igo/thulac.rb', line 8 def cut str, text: false text = text ? "True" : "False" PyCall.eval(<<-EOF thulac1.cut(#{str.inspect}, text=#{text}) EOF ) end |