bigscience-workshop / promptsource

Toolkit for creating, sharing and using natural language prompts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Regenerate all templates in unicode

stephenbach opened this issue · comments

@KhalidAlt made a great suggestion to change

yaml.dump(self.format_for_dump(), open(self.yaml_path, "w"))

to

yaml.dump(self.format_for_dump(), open(self.yaml_path, "w"), allow_unicode=True)

in templates.py so that the yaml files display as unicode (rather than the unicode code points). We should definitely do this, but we should do it when the corpus is relatively stable and we can regenerate (read and write) all the yaml as one commit.