class PragmaticSegmenter::Languages::Japanese::Cleaner

Constants

NewLineInMiddleOfWordRule

Rubular: rubular.com/r/N4kPuJgle7

Public Instance Methods

clean() click to toggle source
Calls superclass method PragmaticSegmenter::Cleaner#clean
# File lib/pragmatic_segmenter/languages/japanese.rb, line 12
def clean
  super
  remove_newline_in_middle_of_word
end

Private Instance Methods

remove_newline_in_middle_of_word() click to toggle source
# File lib/pragmatic_segmenter/languages/japanese.rb, line 19
def remove_newline_in_middle_of_word
  Rule.apply @text, NewLineInMiddleOfWordRule
end