Created
March 23, 2021 21:01
-
-
Save zilunpeng/aefe34d8e4b712f285687f0a2fc67da8 to your computer and use it in GitHub Desktop.
Create mapping between tokens and indices. Code below is part of the wav2vec 2.0 inference notebook (https://git.io/JYeKX).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
target_dict = fairseq_mod.data.Dictionary.load('ltr_dict.txt') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment