Sha256: fc3ddc9ba6c8a6f1f9c5528f1ae258c986173109356e3060142a9d80bfdc1cbc

Contents?: true

Size: 193 Bytes

Versions: 5

Compression:

Stored size: 193 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.4.0 lib/boilerpipe/filters/heuristic_filter_base.rb
boilerpipe-ruby-0.3.0 lib/boilerpipe/filters/heuristic_filter_base.rb
boilerpipe-ruby-0.2.0 lib/boilerpipe/filters/heuristic_filter_base.rb
boilerpipe-ruby-0.1.1 lib/boilerpipe/filters/heuristic_filter_base.rb
boilerpipe-ruby-0.1.0 lib/boilerpipe/filters/heuristic_filter_base.rb