Skip to content

Commit

Permalink
Revert "Fix a bug"
Browse files Browse the repository at this point in the history
This reverts commit 151e9f8.
  • Loading branch information
sueka committed Feb 26, 2018
1 parent 151e9f8 commit 02b98d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/classifier-reborn/lsi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def build_index(cutoff = 0.75)
tdm = Matrix.rows(tda).trans
ntdm = build_reduced_matrix(tdm, cutoff)

ntdm.column_size.times do |col|
ntdm.row_size.times do |col|
doc_list[col].lsi_vector = ntdm.column(col) if doc_list[col]
if ntdm.column(col).zero?
doc_list[col].lsi_norm = ntdm.column(col) if doc_list[col]
Expand Down

0 comments on commit 02b98d8

Please sign in to comment.