hello all, I have a text file and i want to get the total number of occurences of each unigrams that is one word , and the bigram the simultaneous occurence of 2 words and same for 3 words as trigrams. I want to store them in hash tables but am not able to get how to parse through the text file and add them to hash . Can anybody help me out..
ex. if text is hello how are you all hello again. i need unigrams as hello 2 how 1 you 1....so on bigrams as hello how 1 how are 1 are you 1 trigram as hello how are 1 how are you 1 .... Please help.. -thanks _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
