This class keeps a word => index mapping. It is used to map stemmed words to dimensions of a vector.
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.
[Validate]