Skip to content

victorsingh/Python-NLP-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Python-NLP-

Project I did in Natural Language processing class using python

Assignment Requirements:

TRAINING THE NAÏVE BAYES CLASSIFIER FOR MOVIE REVIEW CLASSIFICATION

  1. Implement in Python a Naïve Bayes classifier with bag-of-word features and add-1 smoothing. Note: Smoothing should be used for the context features (bag-of-word features) only. Do not use smoothing for the prior parameters.

  2. Use the following small corpus of movie reviews to train your classifier. Save the parameters of your model in a file called movie-review.NB a) fun, couple, love, love comedy b) fast, furious, shoot action c) couple, fly, fast, fun, fun comedy d) furious, shoot, shoot, fun action e) fly, fast, shoot, love action

  3. Test you classifier on the new document below: {fast, couple, shoot, fly}. Compute the most likely class. Report the probabilities for each class.

About

Project I did in Natural Language processing class using python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages