O'Reilly logo

Natural Language Processing with Java and LingPipe Cookbook by Krishna Dayanidhi, Breck Baldwin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Naïve Bayes

Naïve Bayes is probably the world's most famous classification technology, and just to keep you on your toes, we provide two separate implementations with lots of configurability. One of the most well-known applications of a Naïve Bayes classifier is for spam filtering in an e-mail.

The reason the word naïve is used is that the classifier assumes that words (features) occur independent of one another—this is clearly a naïve assumption, but lots of useful and not-so-useful technologies have been based on the approach. Some notable features of the traditional naïve Bayes include:

  • Character sequences are converted to bags of tokens with counts. No whitespaces are considered, and the order of the tokens does not matter.
  • Naïve Bayes classifiers ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required