o
    6ti                     @   s:   d dl mZ dd Zdd Zdd Zeedd	d
dZdS )    )partialc                 C   s   | d   | dd   S )Nr      )lower)choice r   P/home/ubuntu/.local/lib/python3.10/site-packages/lm_eval/tasks/copal_id/utils.pyconvert_choice      r   c                 C   s*   || d  }| d   d d d|  S )Nquestionpremise )strip)doc	connectorconnr   r   r   doc_to_text   s   r   c                 C   s   t | d t | d gS )Nchoice1choice2)r   )r   r   r   r   doc_to_choice   r	   r   karenamaka)causeeffect)r   N)	functoolsr   r   r   r   doc_to_text_idr   r   r   r   <module>   s    
