我收到以下错误: AssertionError: text input must of type str (single example), List[str] (batch or single pretokenized example) or List[List[str]] (batch of pretokenized examples).,当我运行classifier(encoded)的时候。我的文本类型是str,所以我不确定我做错了什么。任何帮助都是非常感谢的。 import torch
from transformers import AutoTokenizer, BertToken
我正在尝试使用来自HuggingFace的预培训模型。我得到以下错误,
OSError: bart-large is not a local folder and is not a valid model identifier listed on 'https://huggingface.corepository, make sure to pass a token having permission to this repo with `use_auth_token` or log in with `huggingfa
/models/tokenizer3/' is a correct model identifier listed on 'https://huggingface.co/models'
- or './models/tokenizer/' is a correct model identifier listed on 'https://huggingface.co/models&