-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subsequence Probability #149
Comments
Take a look at my pull request: #151 |
Hi, Thanks for your answer @FragLegs , but I am not suer how should I use your code. Let's say I have a trained text "abcd", and I want to predict the next character, and want output like:
the number is probability of the corresponding character will appear as 5th character. |
Hi @vinhqdang . My pull request is designed to do something slightly different. You can use it to do what you are trying to accomplish, but you might be better served editing the code yourself. My PR is intended to give the probability of a string of characters (both the seed and the characters generated by the rnn). So, let's say you want the (log) probability of "abcda". You can get that via Similarly, for "abcdb" you can call In order to determine the probability of each of those characters in the 5th position, you'll also need to know the probability of the 4 leading characters via For a language model such as this one, the probability of
Since my script outputs log probabilities, simply subtract the value you get via |
Hi,
I am using char-nn to sample only a small number of characters (e.g., -length 20) given some seed text.
Is there a possibility to compute the probability with which a sub-sequence was generated out of all other options at each char?
My goal is to compute a confidence score on a generated word.
Thanks !
The text was updated successfully, but these errors were encountered: