
    Ng^                     4    d dl mZmZ d Zd Zd Zd Zd ZdS )    )corpus_ribesword_rank_alignmentc                      d                                 } d                                 }t          ||           g k    sJ |gg}| g}t          ||          dk    sJ d S )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       U/var/www/html/ai-engine/env/lib/python3.11/site-packages/nltk/test/unit/test_ribes.pytest_ribes_empty_worderr      sr     7
<
<
>
>C
G
M
M
O
OCsC((B....E7LJj11S888888    c                      d                                 } d                                 }t          ||           dgk    sJ |gg}| g}t          ||          dk    sJ d S )Nr   z;Okay well that's nice and all but the reference's different   r   r   r
   s       r   test_ribes_one_worderr      st     7
<
<
>
>C
G
M
M
O
OCsC((QC////E7LJj11S888888r   c                      d                                 } d                                 }t          ||           ddgk    sJ |gg}| g}t          ||          dk    sJ d S )Nr   z<Okay well that's nice and all but the reference is different	   r   r   r   r
   s       r   test_ribes_two_worderr      sv     7
<
<
>
>C
H
N
N
P
PCsC((QF2222E7LJj11S888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 d S )	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   -   s      D(  E$  E(  E&  D  E E5)E73LJz2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 d S )	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      s      D(  E$  E(  E& !  DRRREE5)E73LJz22E??f$$$$$$r   N)nltk.translate.ribes_scorer   r   r   r   r   rP   rR    r   r   <module>rU      s{    H H H H H H H H
9 
9 
99 9 99 9 9o% o% o%dW% W% W% W% W%r   