Build Status Latest Stable Version Total Downloads Latest Unstable Version License
Currently, aiPhilos provides two sets of APIs:
The easiest way to install this library is to use composer.
{
"require": {
"aiphilos/api-sdk-php": "1.*"
}
}
// Create client
$client = new Aiphilos\Api\Semantics\Client();
// Configure client
$client->setAuthCredentials('user', 'pass');
$client->setDefaultLanguage('de-de');
$res = $client->parseString('Ordner');
$res = $client->parseStrings(array('Ordner leitz', 'tastatur'));
// Alternative
$res = $client->parseStrings(array('example_1' => 'Ordner leitz', 'example_2' => 'tastatur'));
Aiphilos\Api\Semantics\LexemeFactory::setDefaultClass('My\Namespace\And\Classname'); // Instance of Aiphilos\Api\Semantics\LexemeInterface
Aiphilos\Api\Semantics\SynsetFactory::setDefaultClass('My\Namespace\And\Classname'); // Instance of Aiphilos\Api\Semantics\SynsetInterface
This library is available under the Apache 2.0 License.