Class: NHKore::BasicCleaner
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from Cleaner
#begin_clean, #clean, clean_any
Instance Method Details
#end_clean(str) ⇒ Object
53 54 55 56 57 58 59 60 61 62 |
# File 'lib/nhkore/cleaner.rb', line 53 def end_clean(str) # This is very simple, as Splitter will split on punctuation, # and Polisher will remove the leftover punctuation, digits, etc. # If this is stricter, then errors will be raised in ArticleScraper's # scrape_dicwin_word() & scrape_ruby_word(). str = Util.unspace_web_str(str) # Who needs space in Japanese? return str end |