View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Pratheepan Raveendranathan > WebService-GoogleHack-0.15 > Rate_Sentiment


Annotate this POD


New  1
Open  1
View/Report Bugs


        Rate_Sentiment - Simple program that interacts with GoogleHack to 
        classify the sentiment of words etc.


        #Change this variable if you are running this program from a directory

        #Other than WebService/GoogleHack/Example/


        #set to the entire path to inpute file


        # give string such as excellent as a positive inference

        # give string such as bad as a negative inference


        # Set to true if you want the result sin html format


        #Set to trace file locations

        #Create an Object of type WebService::GoogleHack

        $google = new WebService::GoogleHack;
        #initialize the object to required parameters by giving path to config



        #predict the semantic orientation of the words given text file, and use the word 


        print $results;

        #predict the semantic orientation of the phrases given text file, and use the word 



This program contains example usage of the GoogleHack sentiment classification functions.


Pratheepan Raveendranathan, <>

Ted Pedersen, <>



WebService::GoogleHack home page -

Pratheepan Raveendranathan -

Ted Pedersen -

Google-Hack Maling List <>


Copyright (c) 2005 by Pratheepan Raveendranathan, Ted Pedersen

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to

The Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

syntax highlighting: