Ë
    çÍ:j�1  ã                   óJ  — d Z ddlZddlZddlZddlZddlmZ d„ Z e«       Z	ej                  j                  ej                  j                  d«      dd«      Zej                  j                  ej                  j                  d«      d«      Zd	Zd
„ Z G d„ dej"                  «      Z G d„ dej"                  «      Z G d„ dej"                  «      Zd„ Z ede	«      Z ede«      Z ede«      Z ej2                   ee«      de› �«       G d„ dej"                  «      «       Zy)z‘
Unit tests for VerbnetCorpusReader, covering version support (2.1, 3.2, 3.3)
and the longid/shortid bug fix for dash-style numeric identifiers.
é    N)ÚVerbnetCorpusReaderc                  óÊ   — t         j                  j                  D ]F  } t        j                  j	                  | dd«      }t        j                  j                  |«      sŒD|c S  y)z7Search nltk.data.path for the verbnet corpus directory.ÚcorporaÚverbnetN)ÚnltkÚdataÚpathÚosÚjoinÚisdir)Ú
search_dirÚ	candidates     úp/home/mcse/projects/srt_converter/srt-converter-venv/lib/python3.12/site-packages/nltk/test/unit/test_verbnet.pyÚ_find_verbnet_in_nltk_datar      sJ   € ä—i‘i—n‘nò ˆ
Ü—G‘G—L‘L ¨Y¸	ÓBˆ	Ü�7‰7�=‰=˜Õ#ØÒðð ó    ú~Ú	Downloadsr   z
verbnet3.3z(?!\.).*\.xmlc                 óš   — | d uxrF t         j                  j                  | «      xr% t        d„ t        j                  | «      D «       «      S )Nc              3   ó>   K  — | ]  }|j                  d «      –— Œ y­w)z.xmlN)Úendswith)Ú.0Úfs     r   ú	<genexpr>z$_corpus_available.<locals>.<genexpr>'   s   è ø€ Ò= q�—
‘
˜6×"Ñ=ùs   ‚)r
   r	   r   ÚanyÚlistdir)r	   s    r   Ú_corpus_availabler   #   s@   € à�DÐò 	>Ü�G‰G�M‰M˜$Óò	>äÑ=¬B¯J©J°tÓ,<Ô=Ó=ðr   c                   óv   — e Zd ZdZej
                  Zej                  Zd„ Z	d„ Z
d„ Zd„ Zd„ Zd„ Zd„ Zd	„ Zd
„ Zy)ÚTestRegexPatternsz)Test _LONGID_RE and _SHORTID_RE directly.c                 ó’   — | j                   j                  d«      }|r(|j                  d«      dk(  r|j                  d«      dk(  sJ ‚y )Núconfess-37.10é   Úconfessé   ú37.10©Ú	longid_reÚmatchÚgroup©ÚselfÚms     r   Útest_longid_simplez$TestRegexPatterns.test_longid_simple5   s@   € Ø�N‰N× Ñ  Ó1ˆÙ�Q—W‘W˜Q“Z 9Ò,°·±¸³¸wÒ1FÐFÐFÐ1Fr   c                 ó’   — | j                   j                  d«      }|r(|j                  d«      dk(  r|j                  d«      dk(  sJ ‚y )Núanimal_sounds-38r!   Úanimal_soundsr#   Ú38r%   r)   s     r   Útest_longid_underscorez(TestRegexPatterns.test_longid_underscore9   sA   € Ø�N‰N× Ñ Ð!3Ó4ˆÙ�Q—W‘W˜Q“Z ?Ò2°q·w±w¸q³zÀTÒ7IÐIÐIÐ7Ir   c                 ó’   — | j                   j                  d«      }|r(|j                  d«      dk(  r|j                  d«      dk(  sJ ‚y )Nú	act-114-1r!   Úactr#   ú114-1r%   r)   s     r   Útest_longid_with_dash_shortidz/TestRegexPatterns.test_longid_with_dash_shortid=   s@   € Ø�N‰N× Ñ  Ó-ˆÙ�Q—W‘W˜Q“Z 5Ò(¨Q¯W©W°Q«Z¸7Ò-BÐBÐBÐ-Br   c                 ó>   — | j                   j                  d«      �J ‚y)z1The bug: '114-1' must NOT be matched as a longid.r5   N©r&   r'   ©r*   s    r   Ú"test_longid_rejects_numeric_prefixz4TestRegexPatterns.test_longid_rejects_numeric_prefixA   s   € à�~‰~×#Ñ# GÓ,Ð4Ð4Ñ4r   c                 ó>   — | j                   j                  d«      �J ‚y ©Nr$   r8   r9   s    r   Útest_longid_rejects_pure_digitsz1TestRegexPatterns.test_longid_rejects_pure_digitsE   s   € Ø�~‰~×#Ñ# GÓ,Ð4Ð4Ñ4r   c                 ó>   — | j                   j                  d«      sJ ‚y r<   ©Ú
shortid_rer'   r9   s    r   Útest_shortid_dottedz%TestRegexPatterns.test_shortid_dottedI   ó   € Ø�‰×$Ñ$ WÔ-Ð-Ñ-r   c                 ó>   — | j                   j                  d«      sJ ‚y )Nr5   r?   r9   s    r   Útest_shortid_dashedz%TestRegexPatterns.test_shortid_dashedL   rB   r   c                 ó>   — | j                   j                  d«      sJ ‚y )Nú
22.2-3-1-1r?   r9   s    r   Útest_shortid_complexz&TestRegexPatterns.test_shortid_complexO   s   € Ø�‰×$Ñ$ \Ô2Ð2Ñ2r   c                 ó>   — | j                   j                  d«      �J ‚y )Nr    r?   r9   s    r   Útest_shortid_rejects_alphaz,TestRegexPatterns.test_shortid_rejects_alphaR   s   € Ø�‰×$Ñ$ _Ó5Ð=Ð=Ñ=r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú
_LONGID_REr&   Ú_SHORTID_REr@   r,   r1   r6   r:   r=   rA   rD   rG   rI   © r   r   r   r   .   sK   „ Ù3à#×.Ñ.€IØ$×0Ñ0€JòGòJòCò5ò5ò.ò.ò3ó>r   r   c                   ó    — e Zd ZdZej
                  Zej                  Zd„ Z	d„ Z
d„ Zd„ Zd„ Zd„ Zd„ Zd	„ Zd
„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zy)ÚTestRealEntrieszãTest longid/shortid regex matching against real entries from each version.

    These examples are taken directly from VerbNet 2.1, 3.2, and 3.3 corpora
    so we can verify correctness without requiring the files on disk.
    c                 ó  — | j                   j                  d«      }|r(|j                  d«      dk(  r|j                  d«      dk(  sJ ‚| j                  j                  d«      sJ ‚| j                   j                  d«      �J ‚y)z.VerbNet 2.1: accompany-51.7 (simple dotted id)zaccompany-51.7r!   Ú	accompanyr#   z51.7N©r&   r'   r(   r@   r)   s     r   Útest_v21_accompany_51_7z'TestRealEntries.test_v21_accompany_51_7f   sq   € à�N‰N× Ñ Ð!1Ó2ˆÙ�Q—W‘W˜Q“Z ;Ò.°1·7±7¸1³:ÀÒ3GÐGÐGØ�‰×$Ñ$ VÔ,Ð,Ð,Ø�~‰~×#Ñ# FÓ+Ð3Ð3Ñ3r   c                 ó  — | j                   j                  d«      }|r(|j                  d«      dk(  r|j                  d«      dk(  sJ ‚| j                  j                  d«      sJ ‚| j                   j                  d«      �J ‚y)z9VerbNet 2.1: admire-31.2-1 (dotted id with dash subclass)zadmire-31.2-1r!   Úadmirer#   z31.2-1NrU   r)   s     r   Útest_v21_admire_31_2_1z&TestRealEntries.test_v21_admire_31_2_1m   sp   € à�N‰N× Ñ  Ó1ˆÙ�Q—W‘W˜Q“Z 8Ò+°·±¸³
¸hÒ0FÐFÐFØ�‰×$Ñ$ XÔ.Ð.Ð.Ø�~‰~×#Ñ# HÓ-Ð5Ð5Ñ5r   c                 ó  — | j                   j                  d«      }|r(|j                  d«      dk(  r|j                  d«      dk(  sJ ‚| j                  j                  d«      sJ ‚| j                   j                  d«      �J ‚y)z>VerbNet 2.1: animal_sounds-38 (underscore in name, integer id)r.   r!   r/   r#   r0   NrU   r)   s     r   Útest_v21_animal_sounds_38z)TestRealEntries.test_v21_animal_sounds_38t   sq   € à�N‰N× Ñ Ð!3Ó4ˆÙ�Q—W‘W˜Q“Z ?Ò2°q·w±w¸q³zÀTÒ7IÐIÐIØ�‰×$Ñ$ TÔ*Ð*Ð*Ø�~‰~×#Ñ# DÓ)Ð1Ð1Ñ1r   c                 ó’   — | j                   j                  d«      }|r(|j                  d«      dk(  r|j                  d«      dk(  sJ ‚y)zVerbNet 2.1: weather-57z
weather-57r!   Úweatherr#   Ú57Nr%   r)   s     r   Útest_v21_weather_57z#TestRealEntries.test_v21_weather_57{   s@   € à�N‰N× Ñ  Ó.ˆÙ�Q—W‘W˜Q“Z 9Ò,°·±¸³¸tÒ1CÐCÐCÐ1Cr   c                 óÌ   — | j                   j                  d«      }|r(|j                  d«      dk(  r|j                  d«      dk(  sJ ‚| j                  j                  d«      sJ ‚y)z+VerbNet 2.1: put-9.1-2 (subclass with dash)z	put-9.1-2r!   Úputr#   z9.1-2NrU   r)   s     r   Útest_v21_put_9_1_2z"TestRealEntries.test_v21_put_9_1_2€   sU   € à�N‰N× Ñ  Ó-ˆÙ�Q—W‘W˜Q“Z 5Ò(¨Q¯W©W°Q«Z¸7Ò-BÐBÐBØ�‰×$Ñ$ WÔ-Ð-Ñ-r   c                 ó’   — | j                   j                  d«      }|r(|j                  d«      dk(  r|j                  d«      dk(  sJ ‚y)zVerbNet 3.2: absorb-39.8zabsorb-39.8r!   Úabsorbr#   z39.8Nr%   r)   s     r   Útest_v32_absorb_39_8z$TestRealEntries.test_v32_absorb_39_8ˆ   ó@   € à�N‰N× Ñ  Ó/ˆÙ�Q—W‘W˜Q“Z 8Ò+°·±¸³
¸fÒ0DÐDÐDÐ0Dr   c                 ó’   — | j                   j                  d«      }|r(|j                  d«      dk(  r|j                  d«      dk(  sJ ‚y)z%VerbNet 3.2: advise-37.9-1 (subclass)zadvise-37.9-1r!   Úadviser#   z37.9-1Nr%   r)   s     r   Útest_v32_advise_37_9_1z&TestRealEntries.test_v32_advise_37_9_1�   s@   € à�N‰N× Ñ  Ó1ˆÙ�Q—W‘W˜Q“Z 8Ò+°·±¸³
¸hÒ0FÐFÐFÐ0Fr   c                 ó  — | j                   j                  d«      }|r(|j                  d«      dk(  r|j                  d«      dk(  sJ ‚| j                  j                  d«      sJ ‚| j                   j                  d«      �J ‚y)z;VerbNet 3.2: amalgamate-22.2-3-1-1 (deeply nested subclass)zamalgamate-22.2-3-1-1r!   Ú
amalgamater#   rF   NrU   r)   s     r   Útest_v32_amalgamate_22_2_3_1_1z.TestRealEntries.test_v32_amalgamate_22_2_3_1_1’   sq   € à�N‰N× Ñ Ð!8Ó9ˆÙ�Q—W‘W˜Q“Z <Ò/°A·G±G¸A³JÀ,Ò4NÐNÐNØ�‰×$Ñ$ \Ô2Ð2Ð2Ø�~‰~×#Ñ# LÓ1Ð9Ð9Ñ9r   c                 ó’   — | j                   j                  d«      }|r(|j                  d«      dk(  r|j                  d«      dk(  sJ ‚y)z6VerbNet 3.2: body_internal_motion-49 (underscore name)zbody_internal_motion-49r!   Úbody_internal_motionr#   Ú49Nr%   r)   s     r   Ú test_v32_body_internal_motion_49z0TestRealEntries.test_v32_body_internal_motion_49™   sB   € à�N‰N× Ñ Ð!:Ó;ˆÙ�Q—W‘W˜Q“ZÐ#9Ò9¸a¿g¹gÀa»jÈDÒ>PÐPÐPÐ>Pr   c                 ó’   — | j                   j                  d«      }|r(|j                  d«      dk(  r|j                  d«      dk(  sJ ‚y)z<VerbNet 3.2: entity_specific_cos-45.5 (multiple underscores)zentity_specific_cos-45.5r!   Úentity_specific_cosr#   z45.5Nr%   r)   s     r   Ú!test_v32_entity_specific_cos_45_5z1TestRealEntries.test_v32_entity_specific_cos_45_5ž   sB   € à�N‰N× Ñ Ð!;Ó<ˆÙ�Q—W‘W˜Q“ZÐ#8Ò8¸Q¿W¹WÀQ»ZÈ6Ò=QÐQÐQÐ=Qr   c                 ó’   — | j                   j                  d«      }|r(|j                  d«      dk(  r|j                  d«      dk(  sJ ‚y)z&VerbNet 3.3: act-114 (top-level class)zact-114r!   r4   r#   Ú114Nr%   r)   s     r   Útest_v33_act_114z TestRealEntries.test_v33_act_114¥   s@   € à�N‰N× Ñ  Ó+ˆÙ�Q—W‘W˜Q“Z 5Ò(¨Q¯W©W°Q«Z¸5Ò-@Ð@Ð@Ð-@r   c                 ó  — | j                   j                  d«      }|r(|j                  d«      dk(  r|j                  d«      dk(  sJ ‚| j                   j                  d«      �J ‚| j                  j                  d«      sJ ‚y)z.VerbNet 3.3: act-114-1 (the original bug case)r3   r!   r4   r#   r5   NrU   r)   s     r   Útest_v33_act_114_1z"TestRealEntries.test_v33_act_114_1ª   sp   € à�N‰N× Ñ  Ó-ˆÙ�Q—W‘W˜Q“Z 5Ò(¨Q¯W©W°Q«Z¸7Ò-BÐBÐBà�~‰~×#Ñ# GÓ,Ð4Ð4Ð4Ø�‰×$Ñ$ WÔ-Ð-Ñ-r   c                 ó  — | j                   j                  d«      }|r(|j                  d«      dk(  r|j                  d«      dk(  sJ ‚| j                   j                  d«      �J ‚| j                  j                  d«      sJ ‚y)z*VerbNet 3.3: act-114-1-1 (nested subclass)úact-114-1-1r!   r4   r#   ú114-1-1NrU   r)   s     r   Útest_v33_act_114_1_1z$TestRealEntries.test_v33_act_114_1_1²   sp   € à�N‰N× Ñ  Ó/ˆÙ�Q—W‘W˜Q“Z 5Ò(¨Q¯W©W°Q«Z¸9Ò-DÐDÐDØ�~‰~×#Ñ# IÓ.Ð6Ð6Ð6Ø�‰×$Ñ$ YÔ/Ð/Ñ/r   c                 ó’   — | j                   j                  d«      }|r(|j                  d«      dk(  r|j                  d«      dk(  sJ ‚y)zVerbNet 3.3: acquiesce-95.1-1zacquiesce-95.1-1r!   Ú	acquiescer#   z95.1-1Nr%   r)   s     r   Útest_v33_acquiesce_95_1_1z)TestRealEntries.test_v33_acquiesce_95_1_1¹   sA   € à�N‰N× Ñ Ð!3Ó4ˆÙ�Q—W‘W˜Q“Z ;Ò.°1·7±7¸1³:ÀÒ3IÐIÐIÐ3Ir   c                 ó’   — | j                   j                  d«      }|r(|j                  d«      dk(  r|j                  d«      dk(  sJ ‚y)zVerbNet 3.3: accept-77.1zaccept-77.1r!   Úacceptr#   z77.1Nr%   r)   s     r   Útest_v33_accept_77_1z$TestRealEntries.test_v33_accept_77_1¾   rf   r   c                 ó’   — | j                   j                  d«      }|r(|j                  d«      dk(  r|j                  d«      dk(  sJ ‚y)zDVerbNet 3.3: entity_specific_modes_being-47.2 (long underscore name)z entity_specific_modes_being-47.2r!   Úentity_specific_modes_beingr#   z47.2Nr%   r)   s     r   Ú)test_v33_entity_specific_modes_being_47_2z9TestRealEntries.test_v33_entity_specific_modes_being_47_2Ã   sE   € à�N‰N× Ñ Ð!CÓDˆá�!—'‘'˜!“*Ð =Ò=À!Ç'Á'È!Ã*ÐPVÒBVð	
ØVÐBVr   N)rJ   rK   rL   rM   r   rN   r&   rO   r@   rV   rY   r[   r_   rb   re   ri   rl   rp   rs   rv   rx   r|   r   r‚   r…   rP   r   r   rR   rR   Z   sw   „ ñð $×.Ñ.€IØ$×0Ñ0€Jò4ò6ò2òDò
.òEò
Gò
:òQò
RòAò
.ò0òJò
Eó

r   rR   c                   ó   — e Zd Zd„ Zd„ Zy)ÚTestVersionParameterc                 ó|   — dt         j                  v sJ ‚dt         j                  v sJ ‚dt         j                  v sJ ‚y )Nú2.1ú3.2ú3.3)r   ÚSUPPORTED_VERSIONSr9   s    r   Útest_supported_versionsz,TestVersionParameter.test_supported_versionsÏ   sA   € ØÔ+×>Ñ>Ñ>Ð>Ð>ØÔ+×>Ñ>Ñ>Ð>Ð>ØÔ+×>Ñ>Ñ>Ð>Ñ>r   c                 ó€   — t        j                  t        d¬«      5  t        ddd¬«       d d d «       y # 1 sw Y   y xY w)Nznot supported)r'   z/tmpz.*z4.0©Úversion)ÚpytestÚraisesÚ
ValueErrorr   r9   s    r   Útest_invalid_version_raisesz0TestVersionParameter.test_invalid_version_raisesÔ   s1   € Ü�]‰]œ:¨_Ô=ñ 	=Ü ¨°eÕ<÷	=÷ 	=ñ 	=ús   œ4´=N)rJ   rK   rL   r�   r”   rP   r   r   r‡   r‡   Î   s   „ ò?ó
=r   r‡   c                 óè   ‡ ‡— t        j                  t        ‰«      d‰ › d‰› �«       G ˆˆ fd„dt         j                  «      «       }d‰ j	                  dd«      › �|_        |j
                  |_        |S )zAFactory that returns a test class for a specific VerbNet version.zVerbNet z not found at c                   ó‚   •— e Zd Zeˆ ˆfd„«       Zˆfd„Zd„ Zd„ Zd„ Zd„ Z	d„ Z
d„ Zd	„ Zd
„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zy)ú"_make_corpus_tests.<locals>._Testsc                 ó4   •— t        ‰t        ‰¬«      | _        y )Nr�   )r   Ú_FILEIDSÚvn)ÚclsÚrootr�   s    €€r   Ú
setUpClassz-_make_corpus_tests.<locals>._Tests.setUpClassã   s   ø€ ä(¨¬xÀÔIˆC�Fr   c                 ó<   •— | j                   j                  ‰k(  sJ ‚y )N)rš   r�   )r*   r�   s    €r   Útest_version_propertyz8_make_corpus_tests.<locals>._Tests.test_version_propertyç   s   ø€ Ø—7‘7—?‘? gÒ-Ð-Ñ-r   c                 óT   — t        | j                  j                  «       «      dkD  sJ ‚y ©Nr   )Úlenrš   Úclassidsr9   s    r   Útest_classids_nonemptyz9_make_corpus_tests.<locals>._Tests.test_classids_nonemptyê   s"   € Ü�t—w‘w×'Ñ'Ó)Ó*¨QÒ.Ð.Ñ.r   c                 óT   — t        | j                  j                  «       «      dkD  sJ ‚y r¡   )r¢   rš   Úlemmasr9   s    r   Útest_lemmas_nonemptyz7_make_corpus_tests.<locals>._Tests.test_lemmas_nonemptyí   s    € Ü�t—w‘w—~‘~Ó'Ó(¨1Ò,Ð,Ñ,r   c                 óT   — t        | j                  j                  «       «      dkD  sJ ‚y r¡   )r¢   rš   Ú
wordnetidsr9   s    r   Útest_wordnetids_nonemptyz;_make_corpus_tests.<locals>._Tests.test_wordnetids_nonemptyð   s"   € Ü�t—w‘w×)Ñ)Ó+Ó,¨qÒ0Ð0Ñ0r   c                 óT   — t        | j                  j                  «       «      dkD  sJ ‚y r¡   )r¢   rš   Úfileidsr9   s    r   Útest_fileids_nonemptyz8_make_corpus_tests.<locals>._Tests.test_fileids_nonemptyó   s    € Ü�t—w‘w—‘Ó(Ó)¨AÒ-Ð-Ñ-r   c                 óÈ   — | j                   j                  «       D ]E  }| j                   j                  |«      }| j                   j                  |«      |k(  rŒ=J d|› �«       ‚ y)z7Every longid must survive shortid -> longid round-trip.zround-trip failed for N)rš   r£   ÚshortidÚlongid)r*   ÚcidÚsids      r   Útest_roundtrip_all_idsz9_make_corpus_tests.<locals>._Tests.test_roundtrip_all_idsö   sZ   € à—w‘w×'Ñ'Ó)ò R�Ø—g‘g—o‘o cÓ*�Ø—w‘w—~‘~ cÓ*¨cÓ1ÐQÐ5KÈCÈ5Ð3QÓQÐ1ñRr   c                 ó¨   — | j                   j                  «       d   }| j                   j                  |«      }|€J ‚|j                  d«      |k(  sJ ‚y ©Nr   ÚID)rš   r£   ÚvnclassÚget)r*   r±   Úvcs      r   Útest_vnclass_by_longidz9_make_corpus_tests.<locals>._Tests.test_vnclass_by_longidü   sK   € Ø—'‘'×"Ñ"Ó$ QÑ'ˆCØ—‘—‘ Ó%ˆBØ�>Ð!�>Ø—6‘6˜$“< 3Ò&Ð&Ñ&r   c                 óÞ   — | j                   j                  «       d   }| j                   j                  |«      }| j                   j                  |«      }|€J ‚|j	                  d«      |k(  sJ ‚y rµ   )rš   r£   r¯   r·   r¸   )r*   r±   r²   r¹   s       r   Útest_vnclass_by_shortidz:_make_corpus_tests.<locals>._Tests.test_vnclass_by_shortid  s]   € Ø—'‘'×"Ñ"Ó$ QÑ'ˆCØ—'‘'—/‘/ #Ó&ˆCØ—‘—‘ Ó%ˆBØ�>Ð!�>Ø—6‘6˜$“< 3Ò&Ð&Ñ&r   c                 ó˜   — | j                   j                  «       d   }| j                   j                  |«      }t        |t        «      sJ ‚y r¡   )rš   r£   ÚframesÚ
isinstanceÚlist)r*   r±   r¾   s      r   Útest_framesz._make_corpus_tests.<locals>._Tests.test_frames	  s;   € Ø—'‘'×"Ñ"Ó$ QÑ'ˆCØ—W‘W—^‘^ CÓ(ˆFÜ˜f¤dÔ+Ð+Ñ+r   c                 ó˜   — | j                   j                  «       d   }| j                   j                  |«      }t        |t        «      sJ ‚y r¡   )rš   r£   Ú	themrolesr¿   rÀ   )r*   r±   Úroless      r   Útest_themrolesz1_make_corpus_tests.<locals>._Tests.test_themroles  s=   € Ø—'‘'×"Ñ"Ó$ QÑ'ˆCØ—G‘G×%Ñ% cÓ*ˆEÜ˜e¤TÔ*Ð*Ñ*r   c                 ó˜   — | j                   j                  «       d   }| j                   j                  |«      }t        |t        «      sJ ‚y r¡   )rš   r£   Ú
subclassesr¿   rÀ   )r*   r±   Úsubss      r   Útest_subclassesz2_make_corpus_tests.<locals>._Tests.test_subclasses  s=   € Ø—'‘'×"Ñ"Ó$ QÑ'ˆCØ—7‘7×%Ñ% cÓ*ˆDÜ˜d¤DÔ)Ð)Ñ)r   c                 ó´   — | j                   j                  «       d   }| j                   j                  |«      }t        |t        «      rt        |«      dkD  sJ ‚y r¡   )rš   r£   Úpprintr¿   Ústrr¢   )r*   r±   Úpps      r   Útest_pprintz._make_corpus_tests.<locals>._Tests.test_pprint  sG   € Ø—'‘'×"Ñ"Ó$ QÑ'ˆCØ—‘—‘ Ó$ˆBÜ˜b¤#Ô&¬3¨r«7°Qª;Ð6Ð6¨;r   c                 ó–   — | j                   j                  «       d   }| j                   j                  |¬«      }t        |«      dkD  sJ ‚y )Nr   )Úlemma)rš   r¦   r£   r¢   )r*   rÐ   Úcidss      r   Útest_classids_by_lemmaz9_make_corpus_tests.<locals>._Tests.test_classids_by_lemma  s>   € Ø—G‘G—N‘NÓ$ QÑ'ˆEØ—7‘7×#Ñ#¨%Ð#Ó0ˆDÜ�t“9˜q’=Ð ‘=r   c                 ó–   — | j                   j                  «       d   }| j                   j                  |¬«      }t        |«      dkD  sJ ‚y )Nr   )Úfileid)rš   r¬   r£   r¢   )r*   ÚfidrÑ   s      r   Útest_classids_by_fileidz:_make_corpus_tests.<locals>._Tests.test_classids_by_fileid"  s>   € Ø—'‘'—/‘/Ó# AÑ&ˆCØ—7‘7×#Ñ#¨3Ð#Ó/ˆDÜ�t“9˜q’=Ð ‘=r   c                 ó”   — | j                   j                  «       d   }| j                   j                  |«      }t        |«      dk(  sJ ‚y )Nr   r!   )rš   r£   r¬   r¢   )r*   r±   Úfidss      r   Útest_fileids_by_classidz:_make_corpus_tests.<locals>._Tests.test_fileids_by_classid'  s;   € Ø—'‘'×"Ñ"Ó$ QÑ'ˆCØ—7‘7—?‘? 3Ó'ˆDÜ�t“9 ’>Ð!‘>r   N)rJ   rK   rL   Úclassmethodr�   rŸ   r¤   r§   rª   r­   r³   rº   r¼   rÁ   rÅ   rÉ   rÎ   rÒ   rÖ   rÙ   )rœ   r�   s   €€r   Ú_Testsr—   ß   se   ø„ ð 
ô	Jó 
ð	Jô	.ò	/ò	-ò	1ò	.ò	Rò	'ò	'ò	,ò
	+ò
	*ò
	7ò
	!ò
	!ó
	"r   rÛ   ÚTestVerbNetú.Ú )ÚunittestÚ
skipUnlessr   ÚTestCaseÚreplacerJ   rL   )r�   rœ   rÛ   s   `` r   Ú_make_corpus_testsrã   Ü   sw   ù€ ô ×ÑÜ˜$Ó 8¨G¨9°NÀ4À&Ð!Ió÷H"”×"Ñ"ó H"óðH"ðT $ G§O¡O°C¸Ó$<Ð#=Ð>€F„OØ Ÿ/™/€FÔØ€Mr   r‰   rŠ   r‹   zVerbNet 3.3 not found at c                   ó>   — e Zd ZdZed„ «       Zd„ Zd„ Zd„ Zd„ Z	d„ Z
y)	ÚTestLongidShortidBugFixz@Regression tests for the longid/shortid bug with dash-style IDs.c                 ó:   — t        t        t        d¬«      | _        y )Nr‹   r�   )r   Ú
_VN33_ROOTr™   rš   )r›   s    r   r�   z"TestLongidShortidBugFix.setUpClass?  s   € ä$¤Z´À5ÔIˆ�r   c                 óD   — | j                   j                  d«      dk(  sJ ‚y)z5longid('114-1') must return 'act-114-1', not '114-1'.r5   r3   N©rš   r°   r9   s    r   Útest_longid_numeric_dashz0TestLongidShortidBugFix.test_longid_numeric_dashC  s   € à�w‰w�~‰~˜gÓ&¨+Ò5Ð5Ñ5r   c                 óD   — | j                   j                  d«      dk(  sJ ‚y )Nr{   rz   ré   r9   s    r   Útest_longid_numeric_dash_nestedz7TestLongidShortidBugFix.test_longid_numeric_dash_nestedG  s   € Ø�w‰w�~‰~˜iÓ(¨MÒ9Ð9Ñ9r   c                 óD   — | j                   j                  d«      dk(  sJ ‚y )Nr3   r5   ©rš   r¯   r9   s    r   Útest_shortid_from_dash_longidz5TestLongidShortidBugFix.test_shortid_from_dash_longidJ  s   € Ø�w‰w�‰˜{Ó+¨wÒ6Ð6Ñ6r   c                 óD   — | j                   j                  d«      dk(  sJ ‚y)z5A longid passed to longid() should be returned as-is.r3   Nré   r9   s    r   Útest_longid_passthroughz/TestLongidShortidBugFix.test_longid_passthroughM  s   € à�w‰w�~‰~˜kÓ*¨kÒ9Ð9Ñ9r   c                 óD   — | j                   j                  d«      dk(  sJ ‚y)z7A shortid passed to shortid() should be returned as-is.r5   Nrî   r9   s    r   Útest_shortid_passthroughz0TestLongidShortidBugFix.test_shortid_passthroughQ  s   € à�w‰w�‰˜wÓ'¨7Ò2Ð2Ñ2r   N)rJ   rK   rL   rM   rÚ   r�   rê   rì   rï   rñ   ró   rP   r   r   rå   rå   9  s5   „ ñ KàñJó ðJò6ò:ò7ò:ó3r   rå   )rM   r
   rß   r‘   Ú	nltk.datar   Únltk.corpus.reader.verbnetr   r   Ú
_VN21_ROOTr	   r   Ú
expanduserÚ
_VN32_ROOTrç   r™   r   rá   r   rR   r‡   rã   ÚTestVerbNet21ÚTestVerbNet32ÚTestVerbNet33rà   rå   rP   r   r   ú<module>rü      s#  ðñó
 
Û ã ã Ý :òñ (Ó)€
Ø�W‰W�\‰\˜"Ÿ'™'×,Ñ,¨SÓ1°;À	ÓJ€
Ø�W‰W�\‰\˜"Ÿ'™'×,Ñ,¨SÓ1°<Ó@€
à€òô%>˜×)Ñ)ô %>ôXn
�h×'Ñ'ô n
ôh=˜8×,Ñ,ô =òRñj # 5¨*Ó5€Ù" 5¨*Ó5€Ù" 5¨*Ó5€ð €×ÑÙ�jÓ!Ð%>¸z¸lÐ#Kóô3˜h×/Ñ/ó 3óñ3r   