as the title said, I plan to use Algorithm::NaiveBayes module in Perl to classify sentences (positive, negative or neutral). I have already have the all the sentences and already split these sentence into words. I know the first thing I need to do is to convert the vector of words into a hash variable. But, I do not know how..Is it true I should take the category as hash key and each word as hash variables? I also need to know after converting these vectors of words in to hash variables how to use the Algorithm::NaiveBayes module. Is these anyone can help me to write the code to implement these function. Thanks a lot!!!!!