Skip to content

xiaoyugan0418/Text-classification-with-Naive-Bayes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

we use the popular Reuters 21578 collection of documents as our training dataset which can obtain the dataset from this site: http://archive.ics.uci.edu/ml/machine-learning-databases/reuters21578-mld/. The collection has a total of 123 categories. We modeling Naïve Bayes Classifier according to the following steps: 1.Parse XML documents to extract topics and related content. 2. Tokenize the documents and stem. 3. Create our dictionary of all words (i.e., vocabulary) in the collection and obtain a inverse document frequency (IDF) for each term. 4. Vectorize documents using the TF-IDF scores 5. Train the NB classifier. 4. Classify HTML documents.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages