Trying to convert words to their ARPAbet equivalents using the CMU Pronunciation Dictionary. entries_vector is the Vector{Vector{String}}. A vector of words, then a vector with the word and it’s ARPAbet equivalent. Would like to create a dictionary with the word as a key, and it’s ARPAbet value, as value.
I am lost.
Then the first vector is redundant, right? You just need the second? But it’s not clear how it’s organized. Can you cut and paste a bit of the data, a few entries, so we can see the expected input and output?
Does Dict([entries_vector[1][i] => entries_vector[2][i] for i in eachindex(entries_vector[1])])
Do what you want? I am on my phone, so I can not test it. I have made a strong assumption abou the two vectors in entries_vector being of equal length.