Skip to content

Complex-data/ERRA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

The historical reviews of users about items are often insufficient, thus making it difficult to ensure the accuracy of generated explanation text. To address this issue, we propose a novel model-ERRA with retrieval enhancement. With this additional information, we can generate more accurate and informative explanations.

Usage

Below are examples of how to run ERRA (with and without the retrieval enhancement). python -u main.py
--data_path ./reviews.json
--cuda 1 --checkpoint ./tripadvisorf/
--attention_mask >> 1 --use_retrieval >> 1

Our data reprocessing is based on CIKM20-NETE-Datasets.

Code dependencies

  • Python== 3.7
  • PyTorch ==1.12.1
  • transformers==4.25.1
  • pandas==1.4.3
  • mkl-service==2.4.0
  • nltk==3.7
  • tokenizers==0.13.2
  • ply==3.11

PyTorch implementation of ERRA model

  • main.py is used for train a ERRA model.
  • module.py is the construction and details of the model.
  • utils.py has functions for processing input files.
  • BLUE.py folder contains the tool and a example script of text evaluation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published