PHP Classes

Talking Machine: Learn an idiom and generate words in that idiom

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 47%Total: 2,550 This week: 1All time: 1,506 This week: 571Up
Version License PHP version Categories
tm 1.0.0BSD License4Text processing, Artificial intelligence
Description 

Author

This class can be used to generate a text with words in a given idiom by using machine learning techniques to make the class learn that idiom.

It can be trained to learn an idiom using files with text written in that idiom. The results of the training are stored in a statistics file.

Then the class can generate a set of words in that idiom using the knowlegde of the idiom obtained during the training phase.

The class can either:

- Generate passwords of arbitrary length in that idiom,
- Generate a speech of arbitrary number of words
- Let the user dialog with the talking machine by generating phrases based on what the user types

Innovation Award
PHP Programming Innovation award nominee
April 2007
Number 2


Prize: One book of choice by Packt
Sometimes you need to generate a word or whole phrase in a given language.

So, you need to have a program that generates words that actually exist and make sense within a given context, like for instance, generating easy to spell passwords or phrases that could part of a real speech.

This class implements an interesting solution that uses machine learning techniques to learn an idiom from an existing texts. Then it can generate single words or even phrases in that idiom from the words it previously learned.

Manuel Lemos
Picture of Francisco Arias
Name: Francisco Arias <contact>
Classes: 2 packages by
Country: San Marino San Marino
Age: 53
All time rank: 4522 in San Marino San Marino
Week rank: 420 Up2 in San Marino San Marino Equal
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

Screenshots  
  • TM.jpg
  Files folder image Files  
File Role Description
Plain text file TM.php Class Talking Machine class & command line
Plain text file train_computers_en.txt Data Example text training for english
Plain text file train_computers_es.txt Data Example text training in spanish
Plain text file train_computers_fr.txt Data Example text training in french
Plain text file tutorial Doc. TExt tutorial about the command line tool

 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,550
This week:1
All time:1,506
This week:571Up
User Ratings User Comments (1)
 All time
Utility:66%StarStarStarStar
Consistency:70%StarStarStarStar
Documentation:75%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:47%StarStarStar
Rank:2971