php - OpenCalais can't view importance value -


i'm using php-opencalais library extract data pieces of text. var_dump of entity gives this:

array     (         [industryterm] => array             (                 [0] => internet                 [1] => software maker                 [2] => internet search             )         [person] => array             (                 [0] => steve ballmer                 [1] => jerry yang                 [2] => colin gillis             )         [company] => array             (                 [0] => google inc.                 [1] => canaccord adams                 [2] => yahoo!                 [3] => microsoft corp.             )         [currency] => array             (                 [0] => usd             )         [socialtag] => array             (                 [0] => new encyclopedism                 [1] => microsoft                 [2] => jerry yang                 [3] => steve ballmer                 [4] => bing                 [5] => yahoo!                 [6] => internet search engines                 [7] => hypertext             )     ) 

however, missing lots of information, example, socialtag elements don't have importance value, should, returned in json response: enter image description here

i think problem in these lines of code opencalais.php class using parse json response (these lines 71-76):

foreach ($object $item) {         if (!empty($item->_typegroup) && !empty($item->name)) {             $this->entities[$item->_typegroup][] = trim($item->name);         }     } 


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -