执行pipeline("sentence-similarity"显示报错信息 unkown task sentence-similarity

#15
by littleiron - opened

第一次尝试自然语言模型,按照huggingface的教程安装了transformers,但是在执行
from transformers import pipeline
pipe = pipeline("sentence-similarity", model="GanymedeNil/text2vec-large-chinese")
时仍然报错显示:KeyError: "Unknown task sentence-similarity"
google搜索没有查到类似问题,求教大家

请参考此项目使用https://github.com/shibing624/text2vec

GanymedeNil changed discussion status to closed

Sign up or log in to comment