$wnaffect.'#neutral-emotion', 0 => $wnaffect.'#happiness', 1 => $wnaffect.'#sadness', 2 => $wnaffect.'#fear', 3 => $wnaffect.'#anger', 4 => $wnaffect.'#disgust', 5 => $wnaffect.'#surprise' ); $empathScope = Eklekt_Emotion_Empathyscope::getInstance(); $text = $_GET['q']?$_GET['q']:'Input a string with the ?q="bla" parameter, please'; $domain = $_GET['domain']?$_GET['domain']:'http://gsi.dit.upm.es/ontologies/wndomains/ns#Root'; $sens = explode(".", $text); $res = array(); header('Content-Type: application/xml'); #header('Content-Disposition: attachment; filename="results.rdf"'); header('Content-Type: text/plain'); echo ''; ?> Synesketch feel($sen); foreach($feel->emotions as $emo){ $emo->type = array_key_exists($emo->type, $arr)?$arr[$emo->type]:"UNKNOWN"; } array_push($res, $feel); ?> text?> weight?>