Sha256: 6763bed29ee096d895a0f867e5f71dc15f7b20f84aae70cc53f0acc0bed0cc7c

Contents?: true

Size: 278 Bytes

Versions: 26

Compression:

Stored size: 278 Bytes

Contents

#!/usr/bin/env ruby

begin
        require 'rubygems'
        require 'classifier'
rescue
        require 'classifier'
end

require 'open-uri'

num = ARGV[1].to_i
num = num < 1 ? 10 : num

text = open(ARGV.first).read
puts text.gsub(/<[^>]+>/,"").gsub(/[\s]+/," ").summary(num)

Version data entries

26 entries across 26 versions & 9 rubygems

Version Path
classifier-1.3.2 bin/summarize.rb
secobarbital-classifier-1.3.1.1 bin/summarize.rb
dfhcc_classifier-1.3.2 bin/summarize.rb
dfhcc_classifier-0.0.0 bin/summarize.rb
simple_classifier-1.0.0 bin/summarize.rb
classifier-1.3.1 bin/summarize.rb