Skip to content

Commit 02b98d8

Browse files
committed
Revert "Fix a bug"
This reverts commit 151e9f8.
1 parent 151e9f8 commit 02b98d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/classifier-reborn/lsi.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def build_index(cutoff = 0.75)
143143
tdm = Matrix.rows(tda).trans
144144
ntdm = build_reduced_matrix(tdm, cutoff)
145145

146-
ntdm.column_size.times do |col|
146+
ntdm.row_size.times do |col|
147147
doc_list[col].lsi_vector = ntdm.column(col) if doc_list[col]
148148
if ntdm.column(col).zero?
149149
doc_list[col].lsi_norm = ntdm.column(col) if doc_list[col]

0 commit comments

Comments
 (0)