项目作者: arnoalexander

项目描述 :
Aspect Based Sentiment Analysis for Hotel Review in Bahasa Indonesia (Focused on Aspect-Sentiment Pairing)
高级语言: Python
项目地址: git://github.com/arnoalexander/Final-Project-Pairwise-ABSA.git


Pairwise Aspect-Based Sentiment Analysis

Extracting pairs of aspect and sentiment expression from Indonesian hotel reviews.

The approach is to identify all possible candidate pairs and then classify them into valid or invalid class.

Project Structure

  1. .
  2. ├── ner
  3. ├── pairing
  4. └── utility
  • ner : Classify tokens whether they are aspect term, sentiment term, or not both. This is only a sandbox, we won’t focus on it.
  • pairing : Main module, containing file reader, feature extractor, and pair classifier.
  • utility : Helper for main module.

How to Run

Create directories to store data and save trained model. Put train and test dataset to data/labelled.

  1. .
  2. ├── data
  3. | ├── labelled
  4. | | ├── train-pair.txt
  5. | | └── test-pair.txt
  6. | └── raw
  7. └── model
  8. ├── ner
  9. ├── pairing
  10. └── utility

Then, run demo.ipynb for demonstration or any other jupyter notebook files.