mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-02 19:21:31 +06:00
![]() * 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 |
||
---|---|---|
.. | ||
__init__.py | ||
test_modeling_tf_transfo_xl.py | ||
test_modeling_transfo_xl.py | ||
test_tokenization_transfo_xl.py |