DualRL icon indicating copy to clipboard operation
DualRL copied to clipboard

template help

Open tigsss opened this issue 4 years ago • 1 comments

Hi, thanks for your great work! We were just getting started with the code and were wondering how exactly you generated the templates for the GYAFC dataset. We have all the data labeled with train.0, train.1, ... and we tried to run the get_template_based_result.py command in the terminal. However, we kept getting error

Starting search for file: ../data/GYAFC/template_result/replace_result.test.0-1.tsf
FileNotFoundError: [Errno 2] No such file or directory: '../data/GYAFC/template_result/replace_result.test.0-1.tsf'

Are we supposed to use this to generate the templates? https://github.com/lijuncen/Sentiment-and-Style-Transfer I could not see in the bash script where it generated the tsf files.

Also, when we train the DualRL model, will it automatically use the tsf files? And are the tsf files optional? What other ways do you recommend that we can preprocess it more simply? We were also a little confused about the point of the tsf files / pseudoparallel data in the README and when they came into play. Aren't we trying to do this entirely without parallel data?

Sorry for all the questions, looking forward to hearing back!

tigsss avatar Mar 08 '20 00:03 tigsss

I don't know why you get this error. And I am not 100% sure that this script works. Maybe you can provide more information about this error.

There is an issue about how to generate the templates from https://github.com/lijuncen/Sentiment-and-Style-Transfer .

Please read the REAME.md file and issues more carefully. You can consider use the original data as template-based results to simplify the process. https://github.com/luofuli/DualRL/issues/4

luofuli avatar Mar 12 '20 01:03 luofuli