Skip to content

TypeError: add_tokens() got an unexpected keyword argument 'offset' #13

@Pxtri2156

Description

@Pxtri2156

Hi everyone,
I try to run this repo, but I met error below:

Traceback (most recent call last):  
  File "train_eval.py", line 481, in <module>
    main()
  File "train_eval.py", line 437, in main
    num_added = tokenizer.add_tokens(add_tokens, offset=offset)
TypeError: add_tokens() got an unexpected keyword argument 'offset' 

My environment:

  • Python: 3.7.0
  • Transformers: 2.2.0
  • Tensorflow: 2.0

I checked all of version of the transformer, but I haven't found version that has offset argument in the add_tokens method

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions