cdimascio / py-readability-metrics

📗 Score text readability using a number of formulas: Flesch-Kincaid Grade Level, Gunning Fog, ARI, Dale Chall, SMOG, and more
https://py-readability-metrics.readthedocs.io/en/latest/
MIT License
361 stars 60 forks source link

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

Open mourinholiu opened 3 years ago

mourinholiu commented 3 years ago

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