online-learning library written in PHP
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Oll.php
README

README

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