Yuanxu Wu, Guanquan Dong, Xiaodan Wang
- python 3.6.3
- fine_grained_sentiment_analysis.py is the python code to implement this algorithm, which will output a pickled file to store the trained data.
- score.py is the python code to generate the score of this algorithm.
- Aspect-level_Sentiment_Analysis_NLP_term_project.docx is the report file in word format.
- Aspect-level_Sentiment_Analysis_NLP_term_project.pdf is the report file in pdf format.
- Canon_G3_part1.txt, Canon_G3_part2.txt, Canon_G3_part3.txt are the input review file.
- product_reviews_list_1.data, product_reviews_list_2.data, product_reviews_list_3.data are the pickled data file.
- Opinion_Seed.txt is the input opinion seed file.
- result.png is the bar chart of our output.
- stanford-corenlp-full-2018-02-27 is the stanford dependency parsing package we referenced.
Because the pickled data already stored in this folder, you can only run the score code to see our output.
Input review file format is in our report (at IV experiment)
$python3 fine_grained_sentiment_analysis.py
for example: $python3 fine_grained_sentiment_analysis.py Opinion_Seed.txt Canon_G3_part1.txt product_reviews_list_1.data
- $python3 score.py
for example: $python3 score.py product_reviews_list_1.data
stanford dependency parsing package