Skip to content

Pariiiissssaaaa/ADORE_Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ADORE_Generator

This project aims to generate aspect-aware reviews.

Requiement: pytorch 1.4

Download pre-trained restaurant word embeddings from https://drive.google.com/uc?id=12Pj5LkKnE_XQKIRABiviqgspA5DB1Zfn&export=download

###############################################################################

The language model code is adapted from "PyTorch word level language modeling example": https://github.com/pytorch/examples/tree/master/word_language_model".

The modifications throughout main.py, data.py and model.py are marked as "Parisa's Modification"

The context encoder, regularization, attention layer and embedding layer are originally develped for this project by Parisa.

###############################################################################

To train the model run:

time CUDA_VISIBLE_DEVICES=0 python main.py --inputt ./input --save_1 model_rnn.pt --save_2 model_context.pt

To generate aspect-aware reviews run:

time python generate.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages