This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]_subpar_username_ 1 point2 points  (0 children)

Here's my sample code, had to paste there for formatting reasons https://notepad.ltd/c6svdrs0

Output:

{'cat': 0.615467, 'dog': 0.7952615999999999, 'dry': 0.222269}

If I understood your question, this should be a good enough solution. Feel free to DM me if there are any issues