项目作者: VETURISRIRAM

项目描述 :
Python implementation of Aspect term based Sentiment Analysis.
高级语言: Python
项目地址: git://github.com/VETURISRIRAM/Aspect-Based-Sentiment-Analysis.git
创建时间: 2018-12-07T03:11:35Z
项目社区:https://github.com/VETURISRIRAM/Aspect-Based-Sentiment-Analysis

开源协议:MIT License

下载


Aspect Based Sentiment Analysis

Objective

Given an aspect term (also called opinion target) in a sentence, predict the sentiment label for the aspect term in the sentence.

Dataset Information

The training dataset folder contains two .csv training data files. The data-1_train.csv contains header+2313 lines (training examples) and data-2_train.csv contains header+3602 lines. You can open the .csv files in excel to view them. However, sometimes excel may drop few lines from showing (due to the presence of special char symbols in review text) based on its settings. To view full content, you may use any text editor (like Sublime Text, Notepad++ etc.).

The description of each column in each .csv file is as follows:

Column A: review sentence id (unique id for a training instance).

Column B: review sentence.

Column C: aspect term in the sentence.

Column D: aspect term location [format: start index — End index].

Column E: sentiment label.

Note:- “,” in review sentence (column B) is denoted as “[comma]” to separate it from the column delimiter (“,”) of .csv file. While parsing (data file reading), you can use “,” to split the line into fields (coloums) values.

Implementation

Python implementation of Aspect based Sentiment Analysis. Keep both the training files in the same directory as the python files. Run main.py to see results.

The project needs some external library files.

Numpy

MatplotLib

Pandas

NLTK

textblob

SKLearn

These could be installed using packaging tools like PIP. We use VENV environment.