
    g                     R    d dl mZ d dlmZ d dlmZ d Zd Zedk(  r e        dgZ	y)	    )pylab)	gutenberg)Textc           	         | j                         }|j                  d      D cg c]  \  }}|	 }}}|D cg c]  }||   	 }}t        t        |            D cg c]'  }t	        |d |dz          dz  |j                         z  ) }}t        j                  | j                         t        j                  d       t        j                  d       t        j                  |       t        j                  t        t        |            |D cg c]  }t        |       c}d       t        j                          y c c}}w c c}w c c}w c c}w )N2      g      Y@SampleszCumulative PercentageZ   )rotation)vocabmost_commonrangelensumNr   titlenamexlabelylabelplotxticksstrshow)	textfditem_samplessamplevaluesiss	            J/var/www/openai/venv/lib/python3.12/site-packages/nltk/app/wordfreq_app.pyplot_word_freq_distr$      s   	B#%>>"#56#5at#5G6'./wVbjwF/=B3v;=OP=Oc&1q5/"U*RTTV3=OFP	KK			LL	LL()	JJv	LLs7|$w&?w!s1vw&?"M	JJL 7/P
 '@s   D>E,E	E
c                  V    t        t        j                  d            } t        |        y )Nzmelville-moby_dick.txt)r   r   wordsr$   )t1s    r#   appr(      s    	ioo67	8B    __main__r(   N)

matplotlibr   nltk.corpusr   	nltk.textr   r$   r(   __name____all__ r)   r#   <module>r1      s0     ! 
 zE'r)   