appraisal API examples

Following listing presents how to use features of the robot's appraisal modules using robot structure.

//appraising emotional content of text is very easy
robot.appraisal.Evaluate("text to appraise");//call function evaluating the text
//print results of evaluation
echo("Words found in data base" + robot.appraisal.anew.count);
echo("Mean value of pleasure of words in text" + robot.appraisal.anew.pleasure);
echo("Mean value of arousal of words in text" + robot.appraisal.anew.arousal);
echo("Mean value of dominance of words in text" + robot.appraisal.anew.dominance);



EMYS and FLASH are Open Source and distributed according to the GPL v2.0 © Rev. 0.9.2, 23.11.2017

FLASH Documentation