Skip to content

This repository includes python code to perform sentence classification using Naïve Bayes Classifier with Laplace smoothing

Notifications You must be signed in to change notification settings

svkrishnaveni/Naive-Bayes-Sentence-Classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Naive-Bayes-Sentence-Classifier

This repository includes python code to perform sentence classification using Naïve Bayes Classifier with Laplace smoothing

Requirements and dependencies:

1. numpy 
2. sklearn.model_selection ---> train_test_split
3. nltk
4. nltk.corpus--->stopwords
5. nltk.download('stopwords')
6. re
7. pandas
8. string
9. sklearn.metrics--->classification_report
10. itertools

Dataset:

1.Download the Ford Sentence classification dataset from 'https://www.kaggle.com/datasets/gaveshjain/ford-sentence-classifiaction-dataset?resource=download'
2.Place train_data.csv in the working directory

About

This repository includes python code to perform sentence classification using Naïve Bayes Classifier with Laplace smoothing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published