• Stars
    star
    255
  • Rank 159,729 (Top 4 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created about 5 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Multi-Aspect Multi-Sentiment Dataset for aspect-based sentiment analysis.

MAMS-for-ABSA

This repository contains the data and code for the paper "A Challenge Dataset and Effective Models for Aspect-Based Sentiment Analysis", EMNLP-IJCNLP 2019, [paper].

MAMS

MAMS is a challenge dataset for aspect-based sentiment analysis (ABSA), in which each sentences contain at least two aspects with different sentiment polarities. MAMS dataset contains two versions: one for aspect-term sentiment analysis (ATSA) and one for aspect-category sentiment analysis (ACSA).

Requirements

pytorch==1.1.0
spacy==2.1.8
pytorch-pretrained-bert==0.6.2
adabound==0.0.5
pyyaml==5.1.2
numpy==1.17.2
scikit-learn==0.21.3
scipy==1.3.1

Quick Start

Put the pretrained GloVe(http://nlp.stanford.edu/data/wordvecs/glove.840B.300d.zip) file glove.840B.300d.txt in folder ./data. Modify config.py to select task, model and hyper-parameters. When mode is set to term, base_path should point to an ATSA dataset. When mode is set to category, base_path should point to an ACSA dataset.

Preprocessing

python preprocess.py

Train

python train.py

Test

python test.py

Acknowledgement

The BERT model pretrained by huggingface(https://github.com/huggingface/pytorch-transformers) is used in our experiments.

More Repositories

1

GALAXY

Official repository of the AAAI'2022 paper "GALAXY: A Generative Pre-trained Model for Task-Oriented Dialog with Semi-Supervised Learning and Explicit Policy Injection"
Python
106
star
2

HanFei

国内首个全参数训练的法律大模型 HanFei-1.0 (韩非)
Python
93
star
3

CpRec

A Generic Network Compression Framework for Sequential Recommender Systems
Python
19
star
4

TTOS

Official repository of the EMNLP'2020 paper "Amalgamating Knowledge from Two Teachers for Task-oriented Dialogue System with Adversarial Training"
Python
16
star
5

transformer-pytorch

A PyTorch implementation of transformer for text generation.
Python
15
star
6

DDMN

Code and data for the paper "Dual Dynamic Memory Network for End-to-End Multi-turn Task-oriented Dialog Systems".
Python
13
star
7

NLP-docs

Docs of NLP/deep Learning/machine learning, etc. https://siat-nlp.github.io/docs
HTML
11
star
8

MGMA

Official repository of the KBS'2021 paper "Multi-Goal Multi-agent Learning for Task-oriented Dialogue with Two-to-One Teacher-Student Learning"
Python
7
star
9

dialogue-models

This repository contains reconstructed code for dialogue models.
Python
7
star
10

IPSRec

Code and data for the SIGIR'2022 paper "Item-Provider Co-learning for Sequential Recommendation" (IPSRec)
Python
6
star
11

seq2seq-pytorch

This repository contains RNN, CNN, Transformer based Seq2Seq implementation.
Python
5
star
12

Multi-task-Learning-for-Answer-Selection

A Multi-Task Learning Approach for Answer Selection: A Study and a Chinese Law Dataset
Python
3
star
13

Knowledge-driven-dialogue

Knowledge-driven-dialogue
Python
2
star
14

GPSP-for-Heterogeneous-Network-Embedding

GPSP: Graph Partition and Space Projection based Approach for Heterogeneous Network Embedding
Python
1
star
15

Learning-Document-Embeddings-with-Crossword-Prediction

Learning Document Embeddings with Crossword Prediction
Python
1
star
16

HSEMEC-code-data

Python
1
star