Sentiment Analysis using LingPipe on windows 7:
In this post, I’ll point you to the resource using which you can perform sentiment analysis using LingPipe on a windows OS. Along with that I’ll share couple of issues that I ran into when I was trying to run this demo on a Windows 7:
So first up, here’s the resource:
Now here are a couple of issues that I had:
1. Error: could not find or load the main class PolarityBasic
To solve this error, you’ll need to build the files given under the C:\lingpipe-4.1.0\demos\tutorial\sentiment – we use ANT for this. Let’s see how to do that:
2. Building sentiment.jar using ant jar
After successfully downloading ant on windows and setting the ANT_HOME variable to c:\apache-ant-1.8.4 – I was still getting the error that ant is not a recognized command.
So I ran following commands:
C:\>set ANT_HOME=C:\apache-ant-1.8.1 C:\>set JAVA_HOME=C:\jdk1.6.0_24 C:\>set PATH=%ANT_HOME%\bin;%JAVA_HOME%\bin C:\>ant -version // it worked!
View original post 58 more words