Also, if you have empty lines in your files then add next unless $sentence; after each chomp, and you need to remove the commas from each sentence too.
In reply to Re^5: how to use Algorithm::NaiveBayes module
by tangent
in thread how to use Algorithm::NaiveBayes module
by agnes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |