Skip to content

Commit 8b1638a

Browse files
committed
spelling fix
1 parent 476f106 commit 8b1638a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/classifier-reborn/lsi.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,9 @@ def scored_categories(doc, cutoff = 0.30, &block)
280280
# it's supposed to.
281281
def highest_ranked_stems(doc, count = 3)
282282
raise 'Requested stem ranking on non-indexed content!' unless @items[doc]
283-
content_vecotr_array = node_for_content(doc).lsi_vector.to_a
284-
top_n = content_vecotr_array.sort.reverse[0..count - 1]
285-
top_n.collect { |x| @word_list.word_for_index(content_vecotr_array.index(x)) }
283+
content_vector_array = node_for_content(doc).lsi_vector.to_a
284+
top_n = content_vector_array.sort.reverse[0..count - 1]
285+
top_n.collect { |x| @word_list.word_for_index(content_vector_array.index(x)) }
286286
end
287287

288288
private

0 commit comments

Comments
 (0)