LoslegenKostenlos starten

Readability of 'The Myth of Sisyphus'

In this exercise, you will compute the Flesch reading ease score for Albert Camus' famous essay The Myth of Sisyphus. We will then interpret the value of this score as explained in the video and try to determine the reading level of the essay.

The entire essay is in the form of a string and is available as sisyphus_essay.

Diese Übung ist Teil des Kurses

<Kurs>Feature Engineering for NLP in Python</Kurs>
Kurs ansehen

Übungsanweisungen

  • Import the Readability class from readability.
  • Compute the readability_scores object for sisyphus_essay using Readability.
  • Print the Flesch reading ease score using the flesch method.

Interaktive praktische Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# Import Readability
from readability import ____

# Compute the readability scores object
readability_scores = ____(____)

# Print the flesch reading ease score
flesch = readability_scores.____
print("The Flesch Reading Ease is %.2f" % (flesch.____))
Code bearbeiten und ausführen