"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "06d468d3f07955e4d6ff82feda17120e0e17d987"
Fix idx2sym not loaded from pretrained vocab file in Transformer XL (#27589)
* Load idx2sym from pretrained vocab file in Transformer XL When loading vocab file from a pretrained tokenizer for Transformer XL, although the pickled vocabulary file contains a idx2sym key, it isn't loaded, because it is discarded as the empty list already exists as an attribute. Solution is to explicitly take it into account, just like for sym2idx. * ran make style
Showing
Please register or sign in to comment