JL iVBddlZddlmZGddejZy)N) RegexpParserceZdZdZy) TestChunkRulecngd}td}|j|}|jdk(sJy)a"Test for bug https://github.com/nltk/nltk/issues/1597 Ensures that curly bracket quantifiers can be used inside a chunk rule. This type of quantifier has been used for the supplementary example in https://www.nltk.org/book/ch07.html#exploring-text-corpora. )#)TheAT)zSeptember-OctoberNP)termNN)juryr )hadHVD)beenBEN)chargedVBNbyIN)FultonzNP-TL)SuperiorzJJ-TL)CourtNN-TL)Judger)Durwoodr )Pyer )toTO) investigateVB)reportsNNS)ofr)possibleJJ)``r&)irregularitiesr")''r()inr)ther)z hard-foughtr%)primaryr )whichWDT)wasBEDZ)wonrr)zMayor-nominater)Ivanr )Allenr )zJr.r ).r3zCHUNK: {{4,}}a(S The/AT September-October/NP term/NN jury/NN had/HVD been/BEN charged/VBN by/IN Fulton/NP-TL Superior/JJ-TL (CHUNK Court/NN-TL Judge/NN-TL Durwood/NP Pye/NP) to/TO investigate/VB reports/NNS of/IN possible/JJ ``/`` irregularities/NNS ''/'' in/IN the/AT hard-fought/JJ primary/NN which/WDT was/BEDZ won/VBN by/IN (CHUNK Mayor-nominate/NN-TL Ivan/NP Allen/NP Jr./NP) ./.)N)rparsepformat)selfsentcptrees _/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/nltk/test/unit/test_chunk.py&test_tag_pattern2re_pattern_quantifierz4TestChunkRule.test_tag_pattern2re_pattern_quantifiersA$ J. /xx~ LLN    N)__name__ __module__ __qualname__r;r<r:rrsN r<r)unittestnltkrTestCaserr@r<r:rDsO H%%O r<