Class Classifier::WordList
In: lib/classifier/lsi/word_list.rb
Parent: Object

This class keeps a word => index mapping. It is used to map stemmed words to dimensions of a vector.


[]   add_word   new   size   word_for_index  

Public Class methods

Public Instance methods

Returns the dimension of the word or nil if the word is not in the space.

Adds a word (if it is new) and assigns it a unique dimension.

Returns the number of words mapped.