d?6d@dA6dBdC6dDdE6dFdG6dHdI6dJdK6dLdM6dNdO6dNdP6dQdR6dSdT6dUdV6dWdX6dYdZ6d[d\6d]d^6d_d`6dadb6dcdd6dedf6dgdh6didj6dkdl6dmdn6dodp6dqdr6dsdt6dudv6dwdx6dydz6d{d|6d}d~6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6ZdS(s Corpus reader for the York-Toronto-Helsinki Parsed Corpus of Old English Prose (YCOE), a 1.5 million word syntactically-annotated corpus of Old English prose texts. The corpus is distributed by the Oxford Text Archive: http://www.ota.ahds.ac.uk/ It is not included with NLTK. The YCOE corpus is divided into 100 files, each representing an Old English prose text. Tags used within each text complies to the YCOE standard: http://www-users.york.ac.uk/~lang22/YCOE/YcoeHome.htm iN(tcompat(tRegexpTokenizer(tBracketParseCorpusReader(tTaggedCorpusReader(t*tYCOECorpusReadercBseZdZddZd dZd dZdZd dZd dZ d dZ d d Z d d Z d d Z d d ZRS(s Corpus reader for the York-Toronto-Helsinki Parsed Corpus of Old English Prose (YCOE), a 1.5 million word syntactically-annotated corpus of Old English prose texts. tutf8cCstj||g|t|jjdddd||_t|jjddd|_td|jj D}td|jj D|krt d nt g|D]}d |^qg|D]}d |^q}tj||||t ||_ dS( Ntpsds.*s.psdtencodingtposs.poscss|]}|d VqdS(iN((t.0tf((si/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/corpus/reader/ycoe.pys 0scss|]}|d VqdS(iN((R R ((si/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/corpus/reader/ycoe.pys 1ss5Items in "psd" and "pos" subdirectories do not match.s%s.psds%s.pos( t CorpusReadert__init__tYCOEParseCorpusReadertroottjoint _psd_readertYCOETaggedCorpusReadert _pos_readertsettfileidst ValueErrortsortedt _documents(tselfRRt documentstdocR((si/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/corpus/reader/ycoe.pyR 's$%!cCs~|dkr|jSt|tjr1|g}nx0|D](}||jkr8td|q8q8Wttd|DS(s Return a list of document identifiers for all documents in this corpus, or for the documents with the given file(s) if specified. sFile id %s not foundcss|]}|d VqdS(iN((R R ((si/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/corpus/reader/ycoe.pys HsN( tNoneRt isinstanceRt string_typest_fileidstKeyErrorRR(RRR ((si/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/corpus/reader/ycoe.pyR:s   cCss|dkr|jSt|tjr1|g}nttg|D]}d|^q>g|D]}d|^qXS(s Return a list of file identifiers for the files that make up this corpus, or that store the given document(s) if specified. s%s.poss%s.psdN(RRRRRRR(RRR((si/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/corpus/reader/ycoe.pyRJs    cCs|dkr|j}npt|tjr6|g}nxO|D]G}||jkr=|ddkrqtdqtd|q=q=Wg|D]}d||f^qS( s Helper that selects the appropriate fileids for a given set of documents from a given subcorpus (pos or psd). is.poss.psdsvExpected a document identifier, not a file identifier. (Use corpus.documents() to get a list of document identifiers.s Document identifier %s not founds%s.%sN(s.poss.psd(RRRRRR(RRt subcorpustdocumenttd((si/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/corpus/reader/ycoe.pyt _getfileidsVs     cCs|jj|j|dS(NR (RtwordsR$(RR((si/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/corpus/reader/ycoe.pyR%mscCs|jj|j|dS(NR (RtsentsR$(RR((si/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/corpus/reader/ycoe.pyR&oscCs|jj|j|dS(NR (RtparasR$(RR((si/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/corpus/reader/ycoe.pyR'qscCs|jj|j|dS(NR (Rt tagged_wordsR$(RR((si/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/corpus/reader/ycoe.pyR(sscCs|jj|j|dS(NR (Rt tagged_sentsR$(RR((si/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/corpus/reader/ycoe.pyR)uscCs|jj|j|dS(NR (Rt tagged_parasR$(RR((si/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/corpus/reader/ycoe.pyR*wscCs|jj|j|dS(NR(Rt parsed_sentsR$(RR((si/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/corpus/reader/ycoe.pyR+ysN(t__name__t __module__t__doc__R RRRR$R%R&R'R(R)R*R+(((si/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/corpus/reader/ycoe.pyR!s         RcBseZdZdZRS(srSpecialized version of the standard bracket parse corpus reader that strips out (CODE ...) and (ID ...) nodes.cCs;tjdd|}tjd|r+dStj||S(Ns(?u)\((CODE|ID)[^\)]*\)ts\s*\(\s*\)\s*$(tretsubtmatchRRt_parse(Rtt((si/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/corpus/reader/ycoe.pyR3s(R,R-R.R3(((si/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/corpus/reader/ycoe.pyR}sRcBseZddZRS(RcCs;d}t|dt}tj|||ddd|dS(Ns+(?u)(?<=/\.)\s+|\s*\S*_CODE\s*|\s*\S*_ID\s*tgapstsept_tsent_tokenizer(RtTrueRR (RRtitemsRtgaps_reR8((si/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/corpus/reader/ycoe.pyR s(R,R-R (((si/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/corpus/reader/ycoe.pyRssAdrian and Ritheuss coadrian.o34slfric, Supplemental Homiliess coaelhom.o3slfric's Lives of Saintss coaelive.o3sAlcuin De virtutibus et vitiistcoalcuinsAlexander's Letter to Aristotles coalex.o23sApollonius of Tyres coapollo.o3t Augustinetcoaugusts$Bede's History of the English Churchs cobede.o2sBenedictine Rules cobenrul.o3sBlickling Homiliess coblick.o23s#Boethius' Consolation of Philosophys coboeth.o2sByrhtferth's Manuals cobyrhtf.o3sCanons of Edgar (D)t cocanedgDsCanons of Edgar (X)t cocanedgXslfric's Catholic Homilies Is cocathom1.o3slfric's Catholic Homilies IIs cocathom2.o3s Saint Chads cochad.o24sChrodegang of Metz, RuletcochdrulsSaint Christophert cochristophsAnglo-Saxon Chronicle As cochronA.o23sAnglo-Saxon Chronicle CtcochronCsAnglo-Saxon Chronicle DtcochronDsAnglo-Saxon Chronicle Es cochronE.o34sCura Pastoraliss cocura.o2sCura Pastoralis (Cotton)tcocuraCs Dicts of Catos codicts.o34sDocuments 1 (O1)s codocu1.o1sDocuments 2 (O1/O2)s codocu2.o12sDocuments 2 (O2)s codocu2.o2sDocuments 3 (O2/O3)s codocu3.o23sDocuments 3 (O3)s codocu3.o3sDocuments 4 (O2/O4)s codocu4.o24s Honorius of Autun, Elucidarium 1tcoeluc1tcoeluc2slfric's Epilogue to Genesiss coepigen.o3sSaint Euphrosynetcoeuphrs Saint Eustace and his companionstcoeusts Exodus (P)t coexodusPs Genesis (C)t cogenesiCsGregory's Dialogues (C)s cogregdC.o24sGregory's Dialogues (H)s cogregdH.o23sPseudo-Apuleius, Herbariumtcoherbars"Wulfstan's Institute of Polity (D)s coinspolD.o34s"Wulfstan's Institute of Polity (X)t coinspolXs Saint JamestcojamestLacnungas colacnu.o23t Leechdomss colaece.o2s Laws, Cnut Is colaw1cn.o3s Laws, Cnut IIs colaw2cn.o3sLaws, thelred Vs colaw5atr.o3sLaws, thelred VIs colaw6atr.o3s Laws, Alfreds colawaf.o2sAlfred's Introduction to Lawss colawafint.o2s Laws, Gerefas colawger.o34s Laws, Ines colawine.ox2sNorthumbra Preosta Laguscolawnorthu.o3sLaws, William I, Lads colawwllad.o4tLeofrics coleofri.o4slfric's Letter to Sigefyrths colsigef.o3s lfric's Letter to Sigeweard (B)t colsigewBs lfric's Letter to Sigeweard (Z)s colsigewZ.o34slfric's Letter to Wulfgeattcolwgeatslfric's Letter to Wulfsige (T)t colwsigeTs lfric's Letter to Wulfsige (Xa)scolwsigeXa.o34slfric's Letter to Wulfstan Is colwstan1.o3slfric's Letter to Wulfstan IIs colwstan2.o3sSaint Margaret (C)s comargaC.o34sSaint Margaret (T)tcomargaTsMartyrology, Itcomart1sMartyrology, IItcomart2sMartyrology, IIIs comart3.o23sMarvels of the Easts comarvel.o23s Mary of Egypttcomarys Saint NeottconeotsGospel of Nicodemus (A)tconicodAsGospel of Nicodemus (C)tconicodCsGospel of Nicodemus (D)tconicodDsGospel of Nicodemus (E)tconicodEtOrosiuss coorosiu.o2t Heptateuchs cootest.o3s'lfric's Preface to Catholic Homilies Iscoprefcath1.o3s(lfric's Preface to Catholic Homilies IIscoprefcath2.o3sPreface to the Cura Pastoraliss coprefcura.o2slfric's Preface to Genesiss coprefgen.o3s#lfric's Preface to Lives of Saintsscopreflives.o3s"Preface to Augustine's Soliloquiest coprefsolilos*Pseudo-Apuleius, Medicina de quadrupedibuss coquadru.o23sHistory of the Holy Rood-TreetcoroodsSeven Sleeperst cosevenslsSt. Augustine's SoliloquiestcosolilosSolomon and Saturn Is cosolsat1.o4sSolomon and Saturn IIt cosolsat2slfric's De Temporibus Annis cotempo.o3sVercelli HomiliestcoverhomsVercelli Homilies (E)t coverhomEsVercelli Homilies (L)t coverhomLsSaint Vincent (Bodley 343)tcovinceBsVindicta SalvatoristcovinsalsWest-Saxon Gospelss cowsgosp.o3sWulfstan's Homiliess cowulf.o34(R.tosR0tnltkRt nltk.tokenizeRt nltk.corpus.reader.bracket_parseRtnltk.corpus.reader.taggedRtnltk.corpus.reader.utiltnltk.corpus.reader.apiR RRRR(((si/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/corpus/reader/ycoe.pyts    \