JL i1|ddlZddlmZddlmZddlmZejddZdZ Gd d Z y) N)find) BllipParser)Treemodule)scopecVtdj}tj|S)Nzmodels/bllip_wsj_no_aux)rpathrfrom_unified_model_dir) model_dirs _/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/nltk/test/unit/test_bllip.pyparserr s$./44I  - -i 88c.tjdy)N bllipparser)pytest importorskiprr setup_modulers  &rceZdZdZdZy)TestBllipParserc|jd}t|}t|tsJ|j dj k(sJy)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)))))) )parsenext isinstancerpformatstrip)selfr parsedtrees r test_parser_loads_a_valid_treez.TestBllipParser.test_parser_loads_a_valid_treesP@AF|$%%% LLN EG   rc|jd}t|jdg}t|tsJ|j dk(sJy)Nr) telescopeNNz(S1 (NP (NN telescope))))rr tagged_parserrr)rr r tagged_trees r (test_tagged_parse_finds_matching_elementz8TestBllipParser.test_tagged_parse_finds_matching_element%sR@A6..0C/DEF +t,,,""$(BBBBrN)__name__ __module__ __qualname__r!r'rrr rrs  $Crr) r nltk.datarnltk.parse.bllipr nltk.treerfixturer rrrrr r/sA (h9 9 'CCr