zihangdai / xlnet

XLNet: Generalized Autoregressive Pretraining for Language Understanding
Apache License 2.0
6.18k stars 1.18k forks source link

How can i load pretrained model? #149

Open Bagdu opened 5 years ago

Bagdu commented 5 years ago

I have pretrained XLNET model in Georgian lagnuage. Training has generated this files: image. Now i want to load pretrained XLNET model and for one sentence get sentence_embedding vector. Can you help me ?

rainmaker712 commented 5 years ago

You can use "model_utils.init_from_checkpoint(FLAGS, global_vars=True)" from model_utils.py