Skip to content

Commit 78d76e6

Browse files
committed
remove num_full_text_words not used by anything
1 parent 1c72411 commit 78d76e6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/boilerpipe/document/text_block.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class TextBlock
55

66
attr_reader :text, :num_words, :num_words_in_wrapped_lines, :num_words_in_anchor_text,
77
:num_wrapped_lines, :offset_blocks_start, :offset_blocks_end, :text_density,
8-
:link_density, :labels, :tag_level, :num_full_text_words
8+
:link_density, :labels, :tag_level
99

1010
attr_accessor :content
1111

@@ -16,7 +16,6 @@ def initialize(text, num_words = 0, num_words_in_anchor_text = 0, num_words_in_w
1616
@num_words_in_anchor_text = num_words_in_anchor_text
1717
@num_words_in_wrapped_lines = num_words_in_wrapped_lines
1818
@num_wrapped_lines = num_wrapped_lines
19-
@num_full_text_words = 0
2019
@offset_blocks_start = offset_blocks
2120
@offset_blocks_end = offset_blocks
2221
@content = false
@@ -70,8 +69,6 @@ def merge_next(other)
7069
init_densities
7170
@content |= other.is_content?
7271

73-
@num_full_text_words += other.num_full_text_words
74-
7572
if other.labels
7673
if @labels.nil?
7774
@labels = other.labels.clone

0 commit comments

Comments
 (0)