PHP Text Classifier: Classify text in categories using Bayesian method

Recommend this page to a friend!
  Info   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 70%Total: 3,274 This week: 1All time: 1,058 This week: 231Up
Version License PHP version Categories
phptextclassifier 0.1GNU General Publi...4.0Text processing, Artificial intelligence
Description Author

This package can be used to classify text in categories using a naive Bayesian method.

First it can create a database using sample text to train the classification system. The database is stored in a text file with serialized data.

Then it can analyze arbitrary texts and use the database created during training to guess the category that the text belongs.

It can add new possible categories to the database without limit in number of categories.

Innovation Award
PHP Programming Innovation award nominee
January 2009
Number 10
Bayesian algorithms are often used to classify data in different categories in a way that the systems can be trained and learn from human corrections.

This class provides a solution based on Bayesian algorithms to classify text in an unlimited number of categories.

Manuel Lemos
Picture of Alfan Farizki Wicaksono
Name: Alfan Farizki Wicaksono <contact>
Classes: 2 packages by
Country: Indonesia Indonesia
Age: 32
All time rank: 90212 in Indonesia Indonesia
Week rank: 574 Up13 in Indonesia Indonesia Down
Innovation award
Innovation award
Nominee: 1x


  Files folder image Files  
File Role Description
Plain text file classifier.php Class text classification in PHP (main module)
Accessible without login Plain text file documentation.txt Doc. the simple documentation
Accessible without login Plain text file example.php Example the example, how to use this classes
Plain text file trainer.php Class trainer of the classifier
Plain text file categorymgr.php Class class manager category [utility]
Plain text file category.php Class class category [utility]
Plain text file wordcount.php Class class wordcount [utility]
Plain text file wordprob.php Class class wordprob [utility]
Accessible without login Plain text file Data serialization of wordprob [example]

 Version Control Unique User Downloads Download Rankings  
This week:1
All time:1,058
This week:231Up
User Ratings User Comments (2)
 All time

For more information send a message to info at phpclasses dot org.