lib/boilerpipe/document/text_block.rb in boilerpipe-ruby-0.1.1 vs lib/boilerpipe/document/text_block.rb in boilerpipe-ruby-0.2.0

- old
+ new

@@ -10,10 +10,10 @@ :num_wrapped_lines, :offset_blocks_start, :offset_blocks_end, :text_density, :link_density, :labels, :tag_level, :num_full_text_words attr_accessor :content - def initialize(text, num_words=0, num_words_in_anchor_text=0, num_words_in_wrapped_lines=0, num_wrapped_lines=0, offset_blocks=0) + def initialize(text, num_words=0, num_words_in_anchor_text=0, num_words_in_wrapped_lines=0, num_wrapped_lines=1, offset_blocks=0) @labels = Set.new @text = text @num_words = num_words @num_words_in_anchor_text = num_words_in_anchor_text @num_words_in_wrapped_lines = num_words_in_wrapped_lines