Sha256: 522a457f2adba3e6ea10d9244f08e6bc9f1536f604c976be4623bcf86f18d83b

Contents?: true

Size: 350 Bytes

Versions: 5

Compression:

Stored size: 350 Bytes

Contents

module Boilerpipe::Extractors
  class CanolaExtractor
    def self.text(contents)
      doc = ::Boilerpipe::SAX::BoilerpipeHTMLParser.parse(contents)
      ::Boilerpipe::Extractors::CanolaExtractor.process doc
      doc.content
    end

    def self.process(doc)
      ::Boilerpipe::Filters::CanolaClassifier.process doc

      doc
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
boilerpipe-ruby-0.5.0 lib/boilerpipe/extractors/canola_extractor.rb
boilerpipe-ruby-0.4.4 lib/boilerpipe/extractors/canola_extractor.rb
boilerpipe-ruby-0.4.3 lib/boilerpipe/extractors/canola_extractor.rb
boilerpipe-ruby-0.4.2 lib/boilerpipe/extractors/canola_extractor.rb
boilerpipe-ruby-0.4.1 lib/boilerpipe/extractors/canola_extractor.rb