Class: NHKore::BimyouSplitter

Inherits:
Splitter
  • Object
show all
Defined in:
lib/nhkore/splitter.rb

Direct Known Subclasses

BestSplitter

Instance Method Summary collapse

Methods inherited from Splitter

#begin_split, #split

Constructor Details

#initializeBimyouSplitter

Returns a new instance of BimyouSplitter.



36
37
38
39
40
# File 'lib/nhkore/splitter.rb', line 36

def initialize(*)
  require 'bimyou_segmenter'

  super
end

Instance Method Details

#end_split(str) ⇒ Object



42
43
44
# File 'lib/nhkore/splitter.rb', line 42

def end_split(str)
  return BimyouSegmenter.segment(str,symbol: false,white_space: false)
end