PHP Classes

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   Screenshots Screenshots   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2007-04-14 (8 years ago) RSS 2.0 feedStarStarStar 45%Total: 2,414 This week: 2All time: 1,530 This week: 649Up
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: Spain Spain
Age: 45
All time rank: 43113 in Spain Spain
Week rank: 442 Down14 in Spain Spain Down
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

  • 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,414All time:1,530
 This week:2This week:649Up
User Ratings User Comments (1)  
 All time