gunthercox / chatterbot-corpus

A multilingual dialog corpus
http://chatterbot-corpus.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.36k stars 1.15k forks source link

Corpus.py needs updating for YAML>5 #196

Open pmi123 opened 4 years ago

pmi123 commented 4 years ago

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 commented 1 year ago

yaml.safe_load(data_file) also works