Run a set of HTML documents through the eContext API and return classifications.
public eContext\Classify\Results\Html Html::classify( [$concurrency = 1 [, $params = array() ]] )
Returns a eContext\Classify\Results\Html object containing classifications for the HTML documents specified for this run.
Classify a list HTML documents.
$html = [
'<html><head><title>Example HTML page</title></head><body><h1>Classifying an HTML document</h1><p>eContext provides the best classification results available.</p></body></html>',
'<html><head><title>Nintendo DS</title></head><body><h1>Nintendo DS</h1><p>The Nintendo DS (ニンテンドーDS Nintendō DS?) or simply, DS, is a 32-bit[3] dual-screen handheld game console developed and released by Nintendo</p></body></html>'
]
$client = new eContext\Client(ECONTEXT_USERNAME, ECONTEXT_PASSWORD);
$classify = new eContext\Url($client);
$classify->setData($urls);
$results = $classify->classify();