Text generation with xlnet
how to use xlnet for text generation?



```python 
from transformers import pipeline
xlnet_generator = pipeline("text-generation", model="xlnet-base-cased", tokenizer="xlnet-base-cased")
print(xlnet_generator("Today is a nice day and"))
```

Also this should help: https://huggingface.co/transformers/task_summary.html#text-generation