3
dH                 @   s  d dl mZmZmZmZmZmZmZ d dlm	Z	 d dl
mZ d dlmZ ed ed ed ed eejd	Zed
ej eejdZedej eejdddZedej eej ddZedej eej ddZedej eejdddZedej eej ddZedej eejdddZedej eejdZedej dd  Zd!d"d#d$gZd%d&d'd(d)d*d+d,d-d.d$gZd/d0d1d2d3d0d4d5d0d6d$gZd7d8d9d'd0d:d5d'd0d;d'd<d=gZd>d?d@dAdBdCdDd"dEdFdGgZdHdId=dJdKdLdJdMdMdMdLdNdOd=dPdQdRgZ dSdTdUdVdWdXdUdYdZd0d[d\d@d]d^d_d`d$gZ!dadbdcdUdddedfdgdhdUdidjdkd$gZ"dldmd'dndodpdqd0drdsd'dtdUd\dud5dvd\d@dwd'drd$gZ#dxdy Z$dzS ){    )genesis	gutenberg	inauguralnps_chattreebankwebtextwordnet)FreqDist)Text)bigramsz/*** Introductory Examples for the NLTK Book ***z/Loading text1, ..., text9 and sent1, ..., sent9z1Type the name of the text or sentence to view it.z3Type: 'texts()' or 'sents()' to list the materials.zmelville-moby_dick.txtztext1:zausten-sense.txtztext2:zenglish-kjv.txtzThe Book of Genesis)nameztext3:zInaugural Address Corpusztext4:zChat Corpusztext5:z	grail.txtzMonty Python and the Holy Grailztext6:zWall Street Journalztext7:zsingles.txtzPersonals Corpusztext8:zchesterton-thursday.txtztext9:c               C   sp   t dtj t dtj t dtj t dtj t dtj t dtj t dtj t dt	j t d	t
j d S )
Nztext1:ztext2:ztext3:ztext4:ztext5:ztext6:ztext7:ztext8:ztext9:)printtext1r   text2text3text4text5text6text7text8text9 r   r   )/tmp/pip-build-v9q4h5k9/nltk/nltk/book.pytexts7   s    r   ZCallmeZIshmael.ZThefamilyZofZDashwoodZhadlongZbeenZsettledinZSussexZInZtheZ	beginningZGodcreatedZheavenandZearthZFellow-ZCitizensZSenateZHouseZRepresentatives:IZhaveaZproblemwithZpeopleZPMingZtoZlolZJOINZSCENE1[Zwind]ZclopZKINGZARTHURZWhoaZthere!ZPierreZVinken,Z61ZyearsoldZwilljoinZboardasZnonexecutiveZdirectorzNov.Z29Z25ZSEXYZMALEZseeksZattracZolderZsingleZladyforZdiscreetZ
encountersZTHEZsuburbZSaffronZParkZlayonZsunsetZsideZLondonZredZraggedZcloudc               C   s   t ddjt t ddjt t ddjt t ddjt t ddjt t ddjt t ddjt t d	djt	 t d
djt
 d S )Nzsent1: zsent2:zsent3:zsent4:zsent5:zsent6:zsent7:zsent8:zsent9:)r   r,   sent1sent2sent3sent4sent5sent6sent7sent8sent9r   r   r   r   sents   s    r:   N)%Znltk.corpusr   r   r   r   r   r   r   Znltk.probabilityr	   Z	nltk.textr
   Z	nltk.utilr   r   wordsr   r   r   r   r   r   r   r   r   r   r   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r   r   r   r   <module>	   s$  $	