'The Myth of Sisyphus'의 가독성
이번 연습 문제에서는 Albert Camus의 유명한 수필인 The Myth of Sisyphus에 대해 Flesch 가독성 점수를 계산해 보겠습니다. 영상에서 설명한 기준에 따라 이 점수의 의미를 해석하고, 수필의 읽기 난이도를 추정해 볼 거예요.
수필 전체는 문자열 형태로 sisyphus_essay에 저장되어 있어요.
이 연습은 강의의 일부입니다
Python으로 배우는 NLP 피처 엔지니어링
연습 안내
readability에서Readability클래스를 가져오세요.Readability를 사용해sisyphus_essay의readability_scores객체를 계산하세요.flesch메서드를 사용해 Flesch 가독성 점수를 출력하세요.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
# 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.____))