• SaulLu's avatar
    Change how "additional_special_tokens" argument in the ".from_pretrained"... · 7223844d
    SaulLu authored
    Change how "additional_special_tokens" argument in the ".from_pretrained" method of the tokenizer is taken into account (#13056)
    
    * add test
    
    * add change in PretrainedTokenizerBase
    
    * change Luke
    
    * deactivate
    
    * add the possibility to add additional special tokens for M2M100
    
    * format
    
    * add special test for canine
    
    * proposed changes for mbart
    
    * proposed changes for mbart50
    
    * proposed changes for byt5
    
    * proposed changes for canine
    
    * proposed changes for t5
    
    * test fast and slow
    
    * remove comment
    
    * remove comment
    
    * add fast version for all tests
    
    * replace break by continue
    
    * add more comments
    
    * add check to avoid duplicates
    
    * remove comment
    
    * format
    
    * proposed change for wave2vec2
    
    * reverse changes mbart
    
    * uncomment
    
    * format
    7223844d
test_processor_wav2vec2.py 5.67 KB