o
    7ti6                     @   s$   d d Z dd Zdd Zdd ZdS )	c                 C   s   | d   | dd   S )N       )lower)choice r   W/home/ubuntu/.local/lib/python3.10/site-packages/lm_eval/tasks/super_glue/copa/utils.pyconvert_choice   s   r   c                 C   s0   ddd| d  }| d   d d d|  S )Nbecause	therefore)causeeffectquestionpremise )strip)doc	connectorr   r   r   doc_to_text   s   r   c                 C   s(   | d dkr
| d n| d }dt | S )Nlabelr   choice1choice2r   r   )r   correct_choicer   r   r   doc_to_target   s   r   c                 C   s    dt | d  dt | d  gS )Nr   r   r   r   )r   r   r   r   doc_to_choice   s    r   N)r   r   r   r   r   r   r   r   <module>   s    	