Great project! Thanks for your contribution.
When I read through the whole project. I am confused about the get_control_mapping method on vocab.py. This method seems like to convert the vocabulary table as a list to a vocabulary mapping as a dictionary. But the parameter "symbols" is not used in this method since the vocabulary table already has , and . Even those symbols do not exists in vocabulary table, this method can not add those to the mapping dictionary.
@chenvega get_control_mapping method is used to convert control symbols (e.g. , , ) to numeric ids. For example, we can use params.mapping[params.eos] to find eos_id, which is useful during decoding.
Great project! Thanks for your contribution. When I read through the whole project. I am confused about the get_control_mapping method on vocab.py. This method seems like to convert the vocabulary table as a list to a vocabulary mapping as a dictionary. But the parameter "symbols" is not used in this method since the vocabulary table already has, and . Even those symbols do not exists in vocabulary table, this method can not add those to the mapping dictionary.