
    gV                     B    d dl Z d dlmZ  G d de j                        Zy)    N)RegexpParserc                       e Zd Zd Zy)TestChunkRulec                 n    g d}t        d      }|j                  |      }|j                         dk(  sJ y)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.
        )#)TheAT)zSeptember-OctoberNP)termNN)juryr   )hadHVD)beenBEN)chargedVBNbyIN)FultonzNP-TL)SuperiorzJJ-TL)CourtNN-TL)Judger   )Durwoodr	   )Pyer	   )toTO)investigateVB)reportsNNS)ofr   )possibleJJ)``r&   )irregularitiesr"   )''r(   )inr   )ther   )zhard-foughtr%   )primaryr   )whichWDT)wasBEDZ)wonr   r   )zMayor-nominater   )Ivanr	   )Allenr	   )zJr.r	   ).r3   zCHUNK: {<N.*>{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)r   parsepformat)selfsentcptrees       N/var/www/openai/venv/lib/python3.12/site-packages/nltk/test/unit/test_chunk.py&test_tag_pattern2re_pattern_quantifierz4TestChunkRule.test_tag_pattern2re_pattern_quantifier   sA    $
J ./xx~LLN

 	

    N)__name__
__module____qualname__r;    r<   r:   r   r      s    N
r<   r   )unittestnltkr   TestCaser   r@   r<   r:   <module>rD      s     O
H%% O
r<   