Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
online-learning library written in PHP
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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
Something went wrong with that request. Please try again.