py-readability-metrics icon indicating copy to clipboard operation
py-readability-metrics copied to clipboard

Questions about "r.smog(all_sentences=True)"

Open mourinholiu opened this issue 3 years ago • 0 comments

Dear Cdimascio: I would like to know it still reported 'readability.exceptions.ReadabilityException: SMOG requires 30 sentences. ' when passing the all_sentences=True argument to smog().

r=readability.Readability(text) s = r.smog(all_sentences=True) print(s.score) print(s.grade_level)

Best regards, Jose Liu

mourinholiu avatar Feb 01 '21 15:02 mourinholiu