
    NgV                     @    d dl Z d dlmZ  G d de j                  ZdS )    N)RegexpParserc                       e Zd Zd ZdS )TestChunkRulec                     g d}t          d          }|                    |          }|                                dk    sJ dS )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       U/var/www/html/ai-engine/env/lib/python3.11/site-packages/nltk/test/unit/test_chunk.py&test_tag_pattern2re_pattern_quantifierz4TestChunkRule.test_tag_pattern2re_pattern_quantifier   sa    $
 $
 $
J .//xx~~LLNN

 
 
 
 
 
    N)__name__
__module____qualname__r;    r<   r:   r   r      s(        N
 N
 N
 N
 N
r<   r   )unittestnltkr   TestCaser   r@   r<   r:   <module>rD      sa          O
 O
 O
 O
 O
H% O
 O
 O
 O
 O
r<   