AttributeError: 'NoneType' object has no attribute 'encode_plus' with XLNet tonkenizer
Hi everyone,

I am using XLNet tokenizer , however I am receiving this error.

```
**from transformers import XLNetTokenizer, XLNetModel

tokenizer = XLNetTokenizer.from_pretrained('xlnet-base-cased')

input_txt = "India is my country. All Indians are my brothers and sisters"
encodings = tokenizer.encode_plus(input_txt, add_special_tokens=True, max_length=16, return_tensors='pt', return_token_type_ids=False, return_attention_mask=True, pad_to_max_length=False)**
```

---------------------------------------------------------------------------
```
AttributeError                            Traceback (most recent call last)
<ipython-input-64-4b204650a45a> in <module>()
      1 input_txt = "India is my country. All Indians are my brothers and sisters"
----> 2 encodings = tokenizer.encode_plus(input_txt, add_special_tokens=True, max_length=16, return_tensors='pt', return_token_type_ids=False, return_attention_mask=True, pad_to_max_length=False)

AttributeError: 'NoneType' object has no attribute 'encode_plus'
```
Hey @kutayoncuyilmaz, could you share your software versions as asked in the template? Thanks<|||||>You can do so by running `transformers-cli env` in your environment.<|||||>Thank you. I solved the problem 