【发布时间】:2021-04-02 12:32:57
【问题描述】:
我正在关注转换器的预训练模型xlm-roberta-large-xnli 示例
from transformers import pipeline
classifier = pipeline("zero-shot-classification",
model="joeddav/xlm-roberta-large-xnli")
我收到以下错误
ValueError: Couldn't instantiate the backend tokenizer from one of: (1) a `tokenizers` library serialization file, (2) a slow tokenizer instance to convert or (3) an equivalent slow tokenizer class to instantiate and convert. You need to have sentencepiece installed to convert a slow tokenizer to a fast one.
我用的是变形金刚版'4.1.1'
【问题讨论】:
标签: python nlp huggingface-transformers huggingface-tokenizers