facebookresearch/EmpatheticDialogues

Issue with BertTokenizer

Closed this issue · 2 comments

Hi, I am getting after running the retrieval command I am getting the error:
File "/Users/ikram/opt/anaconda3/lib/python3.7/site-packages/pytorch_pretrained_bert/tokenization.py", line 109, in tokenize
if self.do_basic_tokenize:
AttributeError: 'BertTokenizer' object has no attribute 'do_basic_tokenize'

However I cant locate the file to make requisite changes. What would you advise? Thanks!

Hi there! Which version of pytorch-pretrained-BERT are you using? I've seen this error before - unfortunately for this I believe you need to use an older version of that package. I've tested this code with pytorch-pretrained-BERT==0.5.1

Thank you, that solved that particular issue!