
    /h1                     v    S SK r S SKJr  S SKJr  S SKJr  \ R                  " SS9S 5       rS r	 " S	 S
5      r
g)    N)find)BllipParser)Treemodule)scopec                  X    [        S5      R                  n [        R                  " U 5      $ )Nzmodels/bllip_wsj_no_aux)r   pathr   from_unified_model_dir)	model_dirs    Q/var/www/auris/envauris/lib/python3.13/site-packages/nltk/test/unit/test_bllip.pyparserr      s$    ./44I--i88    c                  0    [         R                  " S5        g )Nbllipparser)pytestimportorskip r   r   setup_moduler      s    
&r   c                        \ rS rSrS rS rSrg)TestBllipParser   c                     UR                  S5      n[        U5      n[        U[        5      (       d   eUR	                  5       SR                  5       :X  d   eg )N I saw the man with the telescopez
(S1
  (S
    (NP (PRP I))
    (VP
      (VBD saw)
      (NP (DT the) (NN man))
      (PP (IN with) (NP (DT the) (NN telescope))))))
)parsenext
isinstancer   pformatstrip)selfr   parsedtrees       r   test_parser_loads_a_valid_tree.TestBllipParser.test_parser_loads_a_valid_tree   sS    @AF|$%%%%LLN 
EG		
	r   c                     UR                  S5      n[        UR                  S/5      5      n[        U[        5      (       d   eUR                  5       S:X  d   eg )Nr   )	telescopeNNz(S1 (NP (NN telescope))))r   r   tagged_parser   r   r   )r   r   r    tagged_trees       r   (test_tagged_parse_finds_matching_element8TestBllipParser.test_tagged_parse_finds_matching_element%   sU    @A6..0C/DEF+t,,,,""$(BBBBr   r   N)__name__
__module____qualname____firstlineno__r"   r)   __static_attributes__r   r   r   r   r      s    
$Cr   r   )r   	nltk.datar   nltk.parse.bllipr   	nltk.treer   fixturer   r   r   r   r   r   <module>r4      s?      (  h9  9
'C Cr   