Learn Before
Concept

Naïve Bayes as a Language Model

A naïve Bayes classifier using only individual word features of all of the words in a given text is similar to language modeling. Such a naïve Bayes model can be viewed as a set of class-specific unigram language models, in which the model for each class instantiates a unigram language model.

The model also assigns a probability to each sentence:

P(sc)=ipositionsP(wic)P(s|c) = \sum_{i\in positions}P(w_i|c)

0

1

Updated 2021-10-02

Tags

Data Science