NJU-PCALab / AddSR

Apache License 2.0
89 stars 4 forks source link

使用的是哪个bert?tokenizer设置。未解析的引用 #22

Open 4C4247 opened 2 weeks ago

4C4247 commented 2 weeks ago

def init_tokenizer(): tokenizer = BertTokenizer.from_pretrained('bert-base-uncased') tokenizer.add_special_tokens({'bos_token': '[DEC]'}) tokenizer.add_special_tokens({'additional_special_tokens': ['[ENC]']}) tokenizer.enc_token_id = tokenizer.additional_special_tokens_ids[0] return tokenizer
我设置了联网下载,但是连接失败,我换了国内镜像,需要手动指定bert是哪一个。如你所见,太多了,可不可以留言告诉我~ 还有三个未解析的引用,是我少了什么包吗。 bert unreferenced

CSRuiXie commented 2 weeks ago

You can refer to this issue to find the weight.