class Boilerpipe::Filters::MinWordsFilter
Public Class Methods
process(min_words, doc)
click to toggle source
# File lib/boilerpipe/filters/min_words_filter.rb, line 5 def self.process(min_words, doc) doc.text_blocks.each do |tb| next if tb.is_not_content? tb.content = false if tb.num_words < min_words end doc end