
    go
                     P    d dl Z d dlmZ d dlmZmZmZ d dlmZ	 dZ
 G d d      Zy)    N)config_megam)RTEFeatureExtractorrte_classifierrte_features)rtea  
alwayson        => True
ne_hyp_extra    => 0
ne_overlap      => 1
neg_hyp         => 0
neg_txt         => 0
word_hyp_extra  => 3
word_overlap    => 3

alwayson        => True
ne_hyp_extra    => 0
ne_overlap      => 1
neg_hyp         => 0
neg_txt         => 0
word_hyp_extra  => 2
word_overlap    => 1

alwayson        => True
ne_hyp_extra    => 1
ne_overlap      => 1
neg_hyp         => 0
neg_txt         => 0
word_hyp_extra  => 1
word_overlap    => 2

alwayson        => True
ne_hyp_extra    => 1
ne_overlap      => 0
neg_hyp         => 0
neg_txt         => 0
word_hyp_extra  => 6
word_overlap    => 2

alwayson        => True
ne_hyp_extra    => 1
ne_overlap      => 0
neg_hyp         => 0
neg_txt         => 0
word_hyp_extra  => 4
word_overlap    => 0

alwayson        => True
ne_hyp_extra    => 1
ne_overlap      => 0
neg_hyp         => 0
neg_txt         => 0
word_hyp_extra  => 3
word_overlap    => 1
c                   $    e Zd Zd Zd Zd Zd Zy)TestRTEClassifierc           
      8   t        j                  dg      d d }|D cg c]/  }t        t        |            D ]  }|ddt        |      |     1 }}}t        j                         j                  d      }t        t        d |            }||k(  sJ y c c}}w )Nzrte1_dev.xml   z<15z => 
)	
rte_corpuspairssortedr   #expected_from_rte_feature_extrationstripsplitlistfilter)selfr   pairkeytest_outputexpected_outputs         U/var/www/openai/venv/lib/python3.12/site-packages/nltk/test/unit/test_rte_classify.pytest_rte_feature_extractionz-TestRTEClassifier.test_rte_feature_extraction<   s      .!122A6 
l401 3itL.s3451 6 	 

 >CCEKKDQvdO<=o---
s   4Bc                 
   t        j                  dg      d   }t        |      }|j                  h dk(  sJ |j	                  d      t               k(  sJ |j	                  d      dhk(  sJ |j                  d      dhk(  sJ y )Nzrte3_dev.xml!   >   SCO.Chinamemberwordner   r    )r   r   r   	hyp_wordsoverlapset	hyp_extra)r   rtepair	extractors      r   test_feature_extractor_objectz/TestRTEClassifier.test_feature_extractor_objectI   s    ""N#34R8'0	""&AAAA  (CE111  &7)333""6*xj888    c                 8    t        dd      }t        dd      }y )NIISd   sample_NGIS)r   )r   clfs     r   %test_rte_classification_without_megamz7TestRTEClassifier.test_rte_classification_without_megamS   s     US1US1r*   c                     	 t                t        dd      }y # t        t        f$ r}t        j                  d       Y d }~7d }~ww xY w)Nz)Skipping tests with dependencies on MEGAMmegamr-   r.   )r   LookupErrorAttributeErrorpytestskipr   )r   er1   s      r   "test_rte_classification_with_megamz4TestRTEClassifier.test_rte_classification_with_megamY   sD    	EN Ws3 ^, 	EKKCDD	Es   
 AAAN)__name__
__module____qualname__r   r)   r2   r:    r*   r   r	   r	   :   s    
.924r*   r	   )r7   nltkr   nltk.classify.rte_classifyr   r   r   nltk.corpusr   r   r   r	   r>   r*   r   <module>rB      s'      X X )0' #f$4 $4r*   