Sha256: eb082a5663939fea388141bd027c8ea0fb73d69b9ee63acd914592533cfb80ff

Contents?: true

Size: 1.77 KB

Versions: 1

Compression:

Stored size: 1.77 KB

Contents

module Boilerpipe
  module Filters
    java_import 'com.kohlschutter.boilerpipe.filters.english.IgnoreBlocksAfterContentFilter'
    java_import 'com.kohlschutter.boilerpipe.filters.english.TerminatingBlocksFinder'
    java_import 'com.kohlschutter.boilerpipe.filters.english.NumWordsRulesClassifier'
    java_import 'com.kohlschutter.boilerpipe.filters.english.HeuristicFilterBase'
    java_import 'com.kohlschutter.boilerpipe.filters.heuristics.BlockProximityFusion'
    java_import 'com.kohlschutter.boilerpipe.filters.heuristics.DocumentTitleMatchClassifier'
    java_import 'com.kohlschutter.boilerpipe.filters.heuristics.ExpandTitleToContentFilter'
    java_import 'com.kohlschutter.boilerpipe.filters.heuristics.KeepLargestBlockFilter'
    java_import 'com.kohlschutter.boilerpipe.filters.heuristics.LargeBlockSameTagLevelToContentFilter'
    java_import 'com.kohlschutter.boilerpipe.filters.heuristics.ListAtEndFilter'
    java_import 'com.kohlschutter.boilerpipe.filters.heuristics.TrailingHeadlineToBoilerplateFilter'
    java_import 'com.kohlschutter.boilerpipe.filters.simple.BoilerplateBlockFilter'

    class ExpandTitleToContentFilter
      def self.process(doc)
        new.process(doc)
      end
    end

    class IgnoreBlocksAfterContentFilter
      def self.process(doc)
        DEFAULT_INSTANCE.process(doc)
      end
    end

    class LargeBlockSameTagLevelToContentFilter
      def self.process(doc)
        INSTANCE.process(doc)
      end
    end

    class TerminatingBlocksFinder
      def self.process(doc)
        new.process(doc)
      end
    end

    class TrailingHeadlineToBoilerplateFilter
      def self.process(doc)
        new.process(doc)
      end
    end

    class NumWordsRulesClassifier
      def self.process(doc)
        new.process(doc)
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jruby-boilerpipe-0.1.0 lib/boilerpipe/filters/filters.rb