1. Learn
  2. /
  3. Courses
  4. /
  5. Python으로 배우는 Natural Language Processing (NLP)

Connected

Exercise

단어 빈도 시각화하기

불용어를 포함한 경우와 제외한 경우의 최빈 단어를 계산했으니, 이제 그 차이를 시각화해 볼 차례예요. 이 연습 문제에서는 matplotlib을 사용해 두 경우 모두 막대 그래프를 그려 보겠습니다.

다음 리스트가 미리 로드되어 있어요: top_words_without_stopwords, top_counts_without_stopwords, top_words_with_stopwords, top_counts_with_stopwords.

Instructions

100 XP
  • plt.bar()를 사용해 불용어를 포함한 상위 10개 단어의 빈도를 그리세요.
  • plt.bar()를 사용해 불용어를 제외한 상위 10개 단어의 빈도를 그리세요.