Additional Tools required:
-- Stanford CoreNLP
-- NLTK (WordNet)
This repository contains all the codes required for Aspect Based Sentiment Analysis,
a.py -> gets sentences from XML file inside tag. Name the file you want to run on in a.py.
- First run corenlp.py which comes with Stanford CoreNLP Parser,
- Then in another terminal run client.py, replace the client.py of Stanford CoreNLP Parser with the one in this repo. It gives dictionaries, with sentences and there relations
- Run aspect_term_extracter.py
- Run pol.py. gives polarity of the aspect terms extracted from above step
- Run categorizer.py . Gives categories of the aspect terms.
- Run catpol.py. Gives polarity of the categories.
- Atlast run makeXML which creates an XML file with the sentences, aspect terms, polarities, categories and their polarities.