Skip to content

fujimoto/php-oll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

online-learning library written in PHP
(just an experimental implementation - need more improvements for production use)

supports:
- perceptron
  - plain
  - aggressive
  - aggressiveI
  - aggressiveII

example:
<?php
require_once 'Oll.php';

$storage = new Oll_Storage_Sqlite();
$storage->open();

$oll = Oll::createInstance('perceptron', $storage);

// train
$oll->train("your copus", 1);	// or -1 as 2nd arg

// test
$r = $oll->test(Oll::makeVector("your text"));	// $r -> 1, 0, -1

thx:
- Taiichi Hashimoto

About

online-learning library written in PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages