class NHKore::TinySplitter

@since 0.2.0

Attributes

tiny[RW]

Public Class Methods

new(*) click to toggle source
Calls superclass method
# File lib/nhkore/splitter.rb, line 64
def initialize(*)
  require 'tiny_segmenter'

  super

  @tiny = TinySegmenter.new
end

Public Instance Methods

end_split(str) click to toggle source
# File lib/nhkore/splitter.rb, line 72
def end_split(str)
  return @tiny.segment(str,ignore_punctuation: true)
end