
    /hV                     B    S SK r S SKJr   " S S\ R                  5      rg)    N)RegexpParserc                       \ rS rSrS rSrg)TestChunkRule   c                 p    / SQn[        S5      nUR                  U5      nUR                  5       S:X  d   eg)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
   ).r4   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       Q/var/www/auris/envauris/lib/python3.13/site-packages/nltk/test/unit/test_chunk.py&test_tag_pattern2re_pattern_quantifier4TestChunkRule.test_tag_pattern2re_pattern_quantifier   sA    $
J ./xx~LLN

 	

     N)__name__
__module____qualname____firstlineno__r<   __static_attributes__r?   r>   r;   r   r      s    N
r>   r   )unittestnltkr   TestCaser   r?   r>   r;   <module>rH      s     O
H%% O
r>   