This tutorial shows how to use the sentiment analysis plugin with the Pickmybrain search engine. If you want to use the plugin as a separate library, check out the FAQ.
If you have got any questions regarding the sentiment analysis plugin or you feel something is out of place, do not hesitate to contact me.
email: henri.ruutinen@gmail.com
Just extract the plugin folder and place it in the pickmybrain folder. Pickmybrain will detect the plugin automatically.
If you are adding an additional language to an existing sentiment analysis plugin, do the following:
After installing the plugin, please configure your indexes to use the sentiment analysis feature. Do not forget to re-index after this!
At the web control panel:
Configuring via command-line:
When you want to sort documents by sentiment scores, do not forget to set the proper sort mode:
<?php
$pickmybrain->SetSortMode(PMB_SORTBY_POSITIVITY); # positive matches first
$pickmybrain->SetSortMode(PMB_SORTBY_NEGATIVITY); # negative matches first
?>