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

Corpus.py needs updating for YAML>5 #196

Open
pmi123 opened this issue Aug 3, 2020 · 1 comment
Open

Corpus.py needs updating for YAML>5 #196

pmi123 opened this issue Aug 3, 2020 · 1 comment

Comments

@pmi123
Copy link

pmi123 commented Aug 3, 2020

corpus.py line 38 needs to change from

return yaml.load(data_file)

to

return yaml.load(data_file, Loader=yaml.FullLoader)

per this update to yaml:
https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation

@WeileiZeng
Copy link

yaml.safe_load(data_file) also works

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