salesforce / awd-lstm-lm

LSTM and QRNN Language Model Toolkit for PyTorch
BSD 3-Clause "New" or "Revised" License
1.96k stars 488 forks source link

How to use the trained model as a discriminative model? #60

Open PromptExpert opened 6 years ago

PromptExpert commented 6 years ago

When the training finished, how does the model give a new sentence a probability?

abubakar-ucr commented 6 years ago

can someone reply to it?

gyuwankim commented 6 years ago

You can calcuate log probability of given sentence using trained model.