NUSTM / VLP-MABSA

107 stars 10 forks source link

How to fix this problem? #15

Open Jackson8787 opened 1 year ago

Jackson8787 commented 1 year ago

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

lyhuohuo commented 1 year ago

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 commented 1 year ago

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