JL isddlmZmZmZmZmZmZmZddlm Z ddl m Z ddl m Z edededede ejd Zed ej"e ejd Zed ej"e ejd dZedej"e ejdZedej"e ejdZedej"e ejddZedej"e ejdZedej"e ejddZedej"e ejdZedej"dZgd Zgd!Zgd"Zgd#Zgd$Zgd%Z gd&Z!gd'Z"gd(Z#d)Z$y*)+)genesis gutenberg inauguralnps_chattreebankwebtextwordnet)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.zmelville-moby_dick.txttext1:zausten-sense.txttext2:zenglish-kjv.txtzThe Book of Genesis)nametext3:zInaugural Address Corpustext4:z Chat Corpustext5:z grail.txtzMonty Python and the Holy Grailtext6:zWall Street Journaltext7:z singles.txtzPersonals Corpustext8:zchesterton-thursday.txttext9:ctdtjtdtjtdtjtdt jtdt jtdtjtdtjtdtjtd tjy) Nr rrrrrrrr) printtext1rtext2text3text4text5text6text7text8text9O/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/nltk/book.pytextsr%7s (EJJ (EJJ (EJJ (EJJ (EJJ (EJJ (EJJ (EJJ (EJJr#)CallmeIshmael.) ThefamilyofDashwoodhadlongbeensettledinSussexr)) Inthe beginningGodcreatedr5heavenandr5earthr)) Fellow-Citizensr,r5Senater:r,r5Houser,Representatives:) IhaveaproblemwithpeoplePMingr'tololJOIN)SCENE1rB[wind]rOcloprRrRrQKINGARTHURrBWhoathere!)PierreVinken,61yearsoldrZwilljoinr5boardasrE nonexecutivedirectorzNov.29r))25SEXYMALErZseeksattracoldersingleladyrZfordiscreet encountersr))THEsuburbr,SaffronParklayonr5sunsetsider,LondonrZraredr:raggedrarEcloudr,rvr)c2tddjttddjttddjttddjt tddjt tddjttddjttd djttd djty) Nzsent1: zsent2:zsent3:zsent4:zsent5:zsent6:zsent7:zsent8:zsent9:) rr_sent1sent2sent3sent4sent5sent6sent7sent8sent9r"r#r$sentsrs (CHHUO$ (CHHUO$ (CHHUO$ (CHHUO$ (CHHUO$ (CHHUO$ (CHHUO$ (CHHUO$ (CHHUO$r#N)% nltk.corpusrrrrrrr nltk.probabilityr nltk.textr nltk.utilr rwordsrrrrrrrrr r!r%r~rrrrrrrrrr"r#r$rs&78789:;< _Y__5 67h  _Y__/ 01h  ]W]], -4IJh  _Y__ %?@h  ^X^^ M2h  ]W]]; '.OPh  ^X^^ $9:h  ]W]]= )0BCh  _Y__6 78h    '     & (   6 %r#