This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from transformers import pipeline | |
from tqdm import tqdm | |
import json | |
def check_mnli_benchmark(benchmark_json_path, classifier, base_path='bigbench/benchmark_tasks/', use_prefix_out=True): | |
""" | |
Function to compute the “multiple_choice_grade” accuracy of the classifier provided. | |
The script save in the path a result json with the score and the list of the results for the elements in the dataset |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'float_time' | |
'many2manyattendee' | |
'many2many_tags' | |
'one2many' | |
'email' | |
'mail_followers' | |
'mail_thread' | |
'many2many_tags_avatar' | |
'pad' | |
'statinfo' |