Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to achieve text editing? #4

Closed
leekum2018 opened this issue Feb 19, 2023 · 7 comments
Closed

How to achieve text editing? #4

leekum2018 opened this issue Feb 19, 2023 · 7 comments

Comments

@leekum2018
Copy link

leekum2018 commented Feb 19, 2023

Hello! Thanks for your nice job! As shown in your paper, the performances on text editing with single or compositional attribute are quite impressive. I wonder how to achieve this purpose based on your codes and checkpoints? I cannot find any instruction on this in your repo. Looking forward to your reply!

@guangyliu
Copy link
Owner

guangyliu commented Feb 20, 2023

Thanks for your comment. We haven't released the text editing code so far. However, the single-attribute text editing results are in the outputs folder. We'll update the code later.

@leekum2018
Copy link
Author

leekum2018 commented Feb 20, 2023

Thanks for your prompt reply! I will keep close watch on your update and look forward to it.

Or can you give some simple instruction on how to get the transfer style experiment result as in the outputs folder?

@leekum2018
Copy link
Author

Sorry to bother you again. But I really want to want how to get the transfer style experiment result as in the outputs folder and explore the details.

@guangyliu
Copy link
Owner

guangyliu commented Feb 23, 2023

I have updated the code, please run bash lace_transfer_yelpnew.sh (in LatentOps/code folder) to get the single attribute text editing results of yelp. The generated file will be in the ckpts/large_yelp/sample/transfer_repa20_1.0.txt. You can increase repa_num in lace_transfer_yelpnew.sh to get better results (generally, 20 and 30 are good choices).

@guangyliu
Copy link
Owner

BTW, we use nltk.tokenize.word_tokenize to tokenize the sentence for evaluating the BLEU score.

@leekum2018
Copy link
Author

leekum2018 commented Feb 23, 2023

Thank you very much! And I have a further question, why don't you use Optimus and instead train a VAE from scratch?

@guangyliu guangyliu reopened this Feb 26, 2023
@guangyliu
Copy link
Owner

Because Optimus has some problems (e.g., they used the old version transformers library) and performs poorly on reconstruction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants