
    g^                     2    d dl mZmZ d Zd Zd Zd Zd Zy)    )corpus_ribesword_rank_alignmentc                      dj                         } dj                         }t        ||       g k(  sJ |gg}| g}t        ||      dk(  sJ y )N*This is a nice sentence which I quite likez;Okay well that's neat and all but the reference's different        splitr   r   hypreflist_of_refs
hypothesess       N/var/www/openai/venv/lib/python3.12/site-packages/nltk/test/unit/test_ribes.pytest_ribes_empty_worderr      sZ     7
<
<
>C
G
M
M
OCsC(B...E7LJj1S888    c                      dj                         } dj                         }t        ||       dgk(  sJ |gg}| g}t        ||      dk(  sJ y )Nr   z;Okay well that's nice and all but the reference's different   r   r   r
   s       r   test_ribes_one_worderr      s\     7
<
<
>C
G
M
M
OCsC(QC///E7LJj1S888r   c                      dj                         } dj                         }t        ||       ddgk(  sJ |gg}| g}t        ||      dk(  sJ y )Nr   z<Okay well that's nice and all but the reference is different	   r   r   r   r
   s       r   test_ribes_two_worderr      s^     7
<
<
>C
H
N
N
PCsC(QF222E7LJj1S888r   c                      g d} g d}g d}g d}g d}g d}|||g|gg}| |g}t        ||      }t        |d      dk(  sJ y )	NItisaguidetoactionwhichensuresthatthemilitaryalwaysobeysr#   commandsofr#   partyr   r   r   r   r   r   r"   r!   r"   r#   r$   willforeverheedPartyr'   r   r   r#   guiding	principler    
guaranteesr#   r$   forcesr%   beingunderr#   commandr(   r#   r.   r   r   r#   	practicalr   forr#   armyr%   r   r-   r#   
directionsr(   r#   r)   )hereadr#   bookbecauser<   was
interestedinworldhistory)r<   r@   rA   rB   rC   rD   r?   r<   r=   r#   r>      g&S?r   round	hyp1ref1aref1bref1chyp2ref2ar   r   scores	            r   
test_ribesrP   -   sj    D(E$E(E&DE E5)E73LJz2E?f$$$r   c                      g d} g d}g d}g d}g d}g d}|||g|gg}| |g}t        ||      }t        |d      dk(  sJ y )	Nr   r*   r/   r7   )r<   r=   r#   )r<   r@   rA   rB   rC   rD   r?   r<   rE   g^K=?rF   rH   s	            r   test_no_zero_divrR      sf    D(E$E(E& !DREE5)E73LJz2E?f$$$r   N)nltk.translate.ribes_scorer   r   r   r   r   rP   rR    r   r   <module>rU      s$    H
999o%dW%r   