Skip to content

seebeyond/KDD-lingpipe

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 

Repository files navigation

KDD-lingpipe

Use lingpipe to do sentiment analysis

How to run and configure the sentiment analysis on aspect-level.

  • Run on eclipse:
    1. You need a plugin called "egit" to clone the repository from here to your local machine.
    2. After the cloning, import the project into your workspace
    3. You need to add junit-4.8.2.jar into your project java build path. Then Compile the project.
    4. Run the Extrator class under package xinghuangxu.lingpipe.snipeet.extractor
      Run configurations-> Program Arguments -> Input the Command: - l + r
      l and r are the left and right size of the snipeet. For example: if [ - 5 + 5 ] is input, snipeet will look like [w1 w2 w3 w4 w5 target w1 w2 w3 w4 w5]
    5. After that you can run the main class in Extractor.class and you will be able to find the results inside the .../xinghuangxu.lingpipe/Sentiment_DB/Log_DB folder.


  • Run in JVM:
    1. Download the project from the repository, install java 7(JVM)
    2. open your terminal, navigate to the project directory ../xinghuangxu.lingpipe/
    3. input command: java -jar kdd-lingpipe-sentiment.jar - l - r
    4. After that you can run the extractor and you will be able to find the results inside the .../xinghuangxu.lingpipe/Sentiment_DB/Log_DB folder.
  • Configuration:
    • Folder Structure:
      Sentiment_DB
      Training_DB Review_DB Log_DB
    • If you want to run a new group of data.
      Put your data into the Review_DB folder which will be created under .../xinghuangxu.lingpipe/Sentiment_DB/ the first time you run the program. For example, if you want to get the sentiment of camera. You can create a folder named Camera and put all the xml review files inside that folder. After that you also need to add a aspect file inside this folder.

      An example of aspect file(the name of the aspect file must include an "aspect" string):

      <Camera><Screen>Screen|LED</Screen><Images>Image|Quality|Prints|Color|Clarity|Pictures|Photos|Snapshots|Indoor shots|Outdoor shots </Images><Battery>Batter</Battery><Zoom>Zoom|Digital zoom</Zoom><Features>Feature|Setting|Auto</Features><Price>Price</Price></Camera>

  • About

    Use lingpipe to do sentiment analysis

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published

    Languages

    • Java 99.3%
    • Other 0.7%