Christopher J. MacLellan
Soar Technology, Inc.
For my social media mining project on twitter sentiment aggregation I need a working version of University of Pittsburgh's Opinion Finder 1.5.
I went to the website here: http://www.cs.pitt.edu/mpqa/opinionfinder_1.html and requested version 1.5.
First unpackage the download and enter the directory:
tar -zxvf opinionfinder.tar.gz cd opinionfinder
The first part of the install is installing sundance
To do this you'll need csh
sudo aptitude install csh cd software/ tar -zxvf sundance-4.37 cd sundance-4.37/include
Open sunstr.C and uncomment the line
/* #include <stdlib.h> */
Open sunstr.h and edit the following include line:
Lastly, compile the file:
cd ../scripts ./install_script
That was what was necessary for me.
Next you need to install scol1k
cd software/ tar -zxvf scol1k.tgz cd scol1k.tgz cd tools
edit select.c and change line 84:
target = *((int *)lines)++;
target = (*((int *)lines))++;
Then return to the home directory for scol1k and compile:
cd .. ./configure make make install
I received some error at the end of running the make command (the make file ran reg on the e8.reg file and got a seg fault).
I ignored this and ran make install anyways... because I think only the stemmer is being used by opinion finder.
Next I moved on to installing BoosTexter 2.1 which I got here. I was able to get the i386 binary for boostexter2.1 and it ran without any problems
Lastly, I had to get a copy of Wordnet 1.6 here.
It was pretty easy to install
edit the make file for your distribution (uncomment the appropriate line):
Then I ran the make script to install the binaries:
sudo make BinWorld
cd software tar -zxvf sundance_apps-4.37 cd sundance_apps-4.37
Then I edited the make file to include the proper path to the sundance directory.
then I installed it:
edit the config.txt file in the opinion finder directory to point to all of the software packages we just installed.
Lastly, run the install script:
python install.py config.txt
I followed the directions in the README
I copied the files in the examples into the database/docs folder
cp -R ./examples/marktwain ./database/docs
then I edited the twain.doclist file to have the appropriate path for each file
then I ran opinionfinder command in the opinionfinder directory:
python opinionfinder.py -f ./examples/twain.doclist
That's it! Best of Luck