PHP Classes

PHP Text Classifier: Classify text in categories using Bayesian method

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 64%Total: 3,328 All time: 1,038 This week: 47Up
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
Innovation award
Innovation award
Nominee: 1x

Recommendations

  Files folder image Files (9)  
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 wordprob.srl Data serialization of wordprob [example]

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,328
This week:0
All time:1,038
This week:47Up
User Ratings User Comments (2)
 All time
Utility:90%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:55%StarStarStar
Examples:60%StarStarStarStar
Tests:-
Videos:-
Overall:64%StarStarStarStar
Rank:764