forked from shibing624/text2vec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f68ab2a
commit 08075ba
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,14 +3,15 @@ | |
@author:XuMing([email protected]) | ||
@description: Evaluate C-MTEB benchmark | ||
pip install mteb | ||
pip install -U C_MTEB | ||
code modified from https://github.com/FlagOpen/FlagEmbedding | ||
""" | ||
import argparse | ||
|
||
from mteb import MTEB | ||
|
||
from C_MTEB.tasks import * | ||
from C_MTEB import ChineseTaskList | ||
from flag_dres_model import FlagDRESModel | ||
|
||
query_instruction_for_retrieval_dict = { | ||
|
@@ -38,8 +39,8 @@ def get_args(): | |
task_langs=['zh', 'zh-CN']).tasks] | ||
print(task_names) | ||
for task in task_names: | ||
# if task not in ChineseTaskList: | ||
# continue | ||
if task not in ChineseTaskList: | ||
continue | ||
if task in ['T2Retrieval', 'MMarcoRetrieval', 'DuRetrieval', | ||
'CovidRetrieval', 'CmedqaRetrieval', | ||
'EcomRetrieval', 'MedicalRetrieval', 'VideoRetrieval', | ||
|