I hereby claim:
- I am lavilet on github.
- I am lavilet (https://keybase.io/lavilet) on keybase.
- I have a public key ASD22uHYnK0VKY-c8p19OmSgnDhuevvwChoatF1YEDqamwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
require 'rubygems' | |
require 'active_record' | |
require 'markio' | |
require 'open-uri' | |
require 'nokogiri' | |
require 'socket' | |
ActiveRecord::Base.establish_connection( | |
:adapter => "sqlite3", |
class Summarizer | |
attr_accessor :title, :text | |
attr_reader :word_hash | |
def extract_sentences(content) | |
tr = content.gsub("\n", ". ") | |
return tr.split(". ") | |
end | |
def split_content_to_paragraphs(content) |