赞
踩
MTEB : Massive Text Embedding Benchmark
中文榜单(2024-05-03)
英文
多模态标记为紫色。
pip install mteb
from mteb import MTEB
from sentence_transformers import SentenceTransformer
# Define the sentence-transformers model name
model_name = "average_word_embeddings_komninos"
# or directly from huggingface:
# model_name = "sentence-transformers/all-MiniLM-L6-v2"
model = SentenceTransformer(model_name)
evaluation = MTEB(tasks=["Banking77Classification"])
results = evaluation.run(model, output_folder=f"results/{model_name}")
mteb --available_tasks
mteb -m sentence-transformers/all-MiniLM-L6-v2 \
-t Banking77Classification \
--verbosity 3
# if nothing is specified default to saving the results in the results/{model_name} folder
伊织 2024-05-03(五)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。