Skip to content
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

getting list of probabilities in prediction #1

Open
orenpapers opened this issue Dec 29, 2019 · 0 comments
Open

getting list of probabilities in prediction #1

orenpapers opened this issue Dec 29, 2019 · 0 comments

Comments

@orenpapers
Copy link

Hi,
In part 5 - "5. Model Inference":

# Single prediction
sentence_to_predict = "the problem with the middleeast is those damn data scientists. All they do is just look at the computer screen instead of laying outside in the warm sun."
single_prediction = predictor.predict(sentence_to_predict)

How can I get a list of probabilities for given word?
For example, given sentence_to_predict, I want to have the probability of the word "yesterday" and it's rank within possible predictions? (the whole vocab)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant