We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 151e9f8 commit 02b98d8Copy full SHA for 02b98d8
lib/classifier-reborn/lsi.rb
@@ -143,7 +143,7 @@ def build_index(cutoff = 0.75)
143
tdm = Matrix.rows(tda).trans
144
ntdm = build_reduced_matrix(tdm, cutoff)
145
146
- ntdm.column_size.times do |col|
+ ntdm.row_size.times do |col|
147
doc_list[col].lsi_vector = ntdm.column(col) if doc_list[col]
148
if ntdm.column(col).zero?
149
doc_list[col].lsi_norm = ntdm.column(col) if doc_list[col]
0 commit comments