-
Notifications
You must be signed in to change notification settings - Fork 1
fujimoto/php-oll
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
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 0
No packages published