The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

SYNOPSIS

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

        #Other than WebService/GoogleHack/Example/

        $PATHCONFIGFILE="../Datafiles/initconfig.txt";

        #set to the entire path to inpute file

        $INPUTFILE="";

        # give string such as excellent as a positive inference
        
        $POSITIVE="";

        # give string such as bad as a negative inference

        $NEGATIVE="";

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

        $HTML="";

        #Set to trace file locations
        
        $TRACEFILE="";

        #Create an Object of type WebService::GoogleHack

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

        #file.

        $google->initConfig("$PATHCONFIGFILE");

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

        $results=$google->predictWordSentiment($INPUTFILE,$POSITIVE,$NEGATIVE,$HTML,$TRACEFILE);

        print $results;

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

        $results=$google->predictPhraseSentiment($INPUTFILE,$POSITIVE,$NEGATIVE,$HTML,$TRACEFILE);

        

DESCRIPTION

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

AUTHOR

Pratheepan Raveendranathan, <rave0029@d.umn.edu>

Ted Pedersen, <tpederse@d.umn.edu>

BUGS

SEE ALSO

WebService::GoogleHack home page - http://google-hack.sourceforge.net

Pratheepan Raveendranathan - http://www.d.umn.edu/~rave0029/research

Ted Pedersen - www.d.umn.edu./~tpederse

Google-Hack Maling List <google-hack-users@lists.sourceforge.net>

COPYRIGHT AND LICENSE

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.