











































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












































Natural Language Processing Derrick Higgins (with slides from William W. Cohen and Chris Manning)
TEXT CATEGORIZATION (CLASSIFICATION)
ARGENTINE 1986/87 GRAIN/OILSEED REGISTRATIONS BUENOS AIRES, Feb 26 Argentine grain board figures show crop registrations of grains, oilseeds and their products to February 11, in thousands of tonnes, showing those for future shipments month, 1986/87 total and 1985/86 total to February 12, 1986, in brackets:
xxxxxxxxxxxxxxxxxxx GRAIN/OILSEED xxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxx grain xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx grains, oilseeds xxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx tonnes, xxxxxxxxxxxxxxxxx shipments xxxxxxxxxxxx total xxxxxxxxx total xxxxxxxx xxxxxxxxxxxxxxxxxxxx:
NAÏVE BAYES
Text Classification with Naive Bayes
𝑖 ) pairs:
Text Classification with Naive Bayes
Two Unreasonable Assumptions
(e.g., if you see “car”, the word “drive” is no more likely to appear than if you saw “dog”)
Text Classification with Naive Bayes
n i n i w w Y y w Y y 1 1 Pr( ,..., | ) Pr( | ) ... and also imagine 𝛼 “pseudo-occurrences” of 𝑤𝑖 in class 𝑌 = 𝑦
UVWXY Z[ ∧ ]^_ a UVWXY ]^_a|b|
Text Classification with Naive Bayes