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.



34
35
36
37
38
# File 'lib/nhkore/splitter.rb', line 34

def initialize(*)
  require 'bimyou_segmenter'

  super
end

Instance Method Details

#end_split(str) ⇒ Object



40
41
42
# File 'lib/nhkore/splitter.rb', line 40

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