Class: NHKore::BimyouSplitter

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

Overview

Since:

  • 0.2.0

Direct Known Subclasses

BestSplitter

Instance Method Summary collapse

Methods inherited from Splitter

#begin_split, #split

Constructor Details

#initializeBimyouSplitter

Returns a new instance of BimyouSplitter.

Since:

  • 0.2.0



47
48
49
50
51
# File 'lib/nhkore/splitter.rb', line 47

def initialize(*)
  require 'bimyou_segmenter'

  super
end

Instance Method Details

#end_split(str) ⇒ Object

Since:

  • 0.2.0



53
54
55
# File 'lib/nhkore/splitter.rb', line 53

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