o
    6ti^                     @   s    d dl mZ dd Zdd ZdS )    )weighted_f1_scorec                 C   s   d}|j | d | d d}|S )Na  Please identify whether the premise entails or contradicts the hypothesis in the following premise
    and hypothesis. The answer should be exact entailment, contradiction, or neutral.

    Premise: {premise}
    Hypothesis: {hypothesis}

    Is it entailment, contradiction, or neutral?premise
hypothesis)r   r   )format)docoutputtext r	   b/home/ubuntu/.local/lib/python3.10/site-packages/lm_eval/tasks/afrixnli/lai prompt/direct/utils.pydoc_to_text   s   r   c                 C   s   dddd}|| d  S )N
entailmentneutralcontradiction)r         labelr	   )r   replacementsr	   r	   r
   doc_to_target   s   r   N)lm_eval.utilsr   r   r   r	   r	   r	   r
   <module>   s    