VLP-MABSA icon indicating copy to clipboard operation
VLP-MABSA copied to clipboard

How to fix this problem?

Open Jackson8787 opened this issue 2 years ago • 2 comments

I got the error message below when running sh 15_pretrain_full.sh.

OSError: Model name './E2E-MABSA' was not found in tokenizers model name list (facebook/bart-base, facebook/bart-large, facebook/bart-large-mnli, facebook/bart-large-cnn, facebook/bart-large-xsum, yjernite/bart_eli5). We assumed './E2E-MABSA' was a path, a model identifier, or url to a directory containing vocabulary files named ['vocab.json', 'merges.txt'] but couldn't find such vocabulary files at this path or url.

How can I fix it? スクリーンショット 2023-01-08 000312

Jackson8787 avatar Jan 07 '23 16:01 Jackson8787

This error seems the model can't find the initial bart model path, you can download the bart model files from hugging face and modify the path.

lyhuohuo avatar Jan 10 '23 06:01 lyhuohuo

image you need to change the parameter "pretrained_model_name" as the path of your download bart model.

lyhuohuo avatar Jan 10 '23 06:01 lyhuohuo