I am trying to use XLNET through transformers. however i keep getting the issue "AttributeError: ‘NoneType’ object has no attribute ‘tokenize’". I am unsure of how to proceed. if anyone could point me in the right direction it would be appreciated.
30.11.2020 · AttributeError: 'NoneType' object has no attribute 'from_pretrained' #8864. Closed louisabraham opened this issue Dec 1, 2020 · 6 comments ... The implementation of the Marian tokenizer was not respecting the API in that regard. Tokenizers can still handle torch tensors, you need to specify that you want them though: tokenizer ...
31.05.2021 · I am trying to use XLNET through transformers. however i keep getting the issue "AttributeError: 'NoneType' object has no attribute 'tokenize'". I am unsure of how to proceed. if anyone could point me in the right direction it would be appreciated. tokenizer = XLNetTokenizer.from_pretrained ('xlnet-base-cased', do_lower_case=True) print ...
30.01.2020 · 关于 'NoneType' object has no attribute 'tokenize' #26. PhilrainV opened this issue Jan 30, 2020 · 10 comments Comments. Copy link PhilrainV commented Jan 30, 2020.
AttributeError: 'NoneType' object has no attribute 'tokenize' ... tokens = self.tokenizer.tokenize(line.strip()). AttributeError: 'NoneType' object has no ...
05.01.2022 · so this is my code. sentence = tokenize(sentence) X = bag_of_words(sentence,all_words) X = X.reshape(1,X.shape[0]) X = torch.from_numpy(X).to(device)