XiangLi1999 / Diffusion-LM

Diffusion-LM
Apache License 2.0
1.03k stars 134 forks source link

Evaluating methods #14

Closed Laney-cici closed 2 years ago

Laney-cici commented 2 years ago

Hi, I finished all commands that you provided, but I don't know how to evaluate the generated files. I noticed that there is a script (Diffusion-LM/improved-diffusion/control_gen/eval_control.py) to evaluate, but I can't find "diffusion_lm/misc/self-attentive-parser" and "evaluate". Could you add them or reply here with evaluating method? Thanks!

XiangLi1999 commented 2 years ago

You could get the evaluation wrapper by cloning https://github.com/nikitakit/self-attentive-parser, I reuse their wrapper around the parse tree evaluation.