chartbeat-labs / textacy

NLP, before and after spaCy
https://textacy.readthedocs.io
Other
2.21k stars 249 forks source link

Missing return statement #191

Closed martijnvanbeers closed 6 years ago

martijnvanbeers commented 6 years ago

After upgrading to 0.6, I get a deprecation warning for using flesch_readability_ease, but I also get a None value in return because there's a return missing on the following line: https://github.com/chartbeat-labs/textacy/blame/master/textacy/text_stats.py#L247

bdewilde commented 6 years ago

Hi @martijnvanbeers , thanks for the report. I've fixed the bug, but: that deprecation warning is there to let you know that you should be using text_stats.flesch_reading_ease() instead.