Sha256: 47e4ac690a3f5a82fc2984956dd3a71c35025d0642eb662948c00b0c0774c225

Contents?: true

Size: 195 Bytes

Versions: 5

Compression:

Stored size: 195 Bytes

Contents

module Boilerpipe::Filters
  class HeuristicFilterBase
    def self.num_full_text_words(tb, min_text_density = 9.0)
      tb.text_density >= min_text_density ? tb.num_words : 0
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
boilerpipe-ruby-0.5.0 lib/boilerpipe/filters/heuristic_filter_base.rb
boilerpipe-ruby-0.4.4 lib/boilerpipe/filters/heuristic_filter_base.rb
boilerpipe-ruby-0.4.3 lib/boilerpipe/filters/heuristic_filter_base.rb
boilerpipe-ruby-0.4.2 lib/boilerpipe/filters/heuristic_filter_base.rb
boilerpipe-ruby-0.4.1 lib/boilerpipe/filters/heuristic_filter_base.rb