Skip to content

Commit

Permalink
Update master
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyks committed Jun 8, 2012
1 parent 6faca0a commit 0609ba4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ajax/nlp.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php
//this file is for extracting the contents of a webpage and then analyzing it to get tags
require('../lib/opencalais.php');
require('../lib/content-extract.php');
$oc = new OpenCalais('t7vydt6bxg5m6v2vtc7bk929');
$html = file_get_contents($_GET['url']);
$threshold = 0.0;
//$html = file_get_contents('http://www.forbes.com/sites/petercohan/2012/04/12/9-99-e-book-price-to-cost-apple-252-million/');

$extractor = new ContentExtractor();
$content = $extractor->extract($html);

Expand Down

0 comments on commit 0609ba4

Please sign in to comment.