chatterbot-corpus icon indicating copy to clipboard operation
chatterbot-corpus copied to clipboard

Corpus.py needs updating for YAML>5

Open pmi123 opened this issue 4 years ago • 1 comments

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

pmi123 avatar Aug 03 '20 18:08 pmi123

yaml.safe_load(data_file) also works

WeileiZeng avatar Apr 06 '23 09:04 WeileiZeng