ShannonAI / Neural-Semi-Supervised-Learning-for-Text-Classification

Semi-supervised Learning for Sentiment Analysis
MIT License
53 stars 11 forks source link

roberta-base not found #3

Open Gavingx opened 3 years ago

Gavingx commented 3 years ago

Hi: I got an error when initializing pretrained model by RobertaTokenizer. self.tokenizer = RobertaTokenizer.from_pretrained("roberta-base") self.model = RobertaForMaskedLM.from_pretrained('roberta-base')

OSError: Model name 'roberta-base' was not found in tokenizers model name list (roberta-base, roberta-large, roberta-large-mnli, distilroberta-base, roberta-base-openai-detector, roberta-large-openai-detector). We assumed 'roberta-base' 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.