ghchen18 / leca

Code for Lexical-Constraint-Aware Neural Machine Translation via Data Augmentation
Other
17 stars 5 forks source link

How to use original constraints in evaluation #10

Closed futuran closed 3 years ago

futuran commented 3 years ago

Thanks you for making the repo opened!

Well, I'm trying to use my custom constraints in the evaluation phase as "Interactive constraints" in the paper. Is there any option for that in generate.py? Could you please help me to know how to do that. Thank you.

ghchen18 commented 3 years ago

you can append your custom constraints after the source sentences with <sep> symbol, then test with testclean=True.