Model I am using (Bert, XLNet....): BERT
Language I am using the model on (English, Chinese....): English
The problem arise when using:
The tasks I am working on is:
Steps to reproduce the behavior:
File "/path-to/run_ner.py", line 167, in train
results, _ = evaluate(args, model, tokenizer, labels, pad_token_label_id)
TypeError: evaluate() missing 1 required positional argument: 'mode'
pip3 install git+https://github.com/huggingface/transformers.git --upgrade command, the first bug got away. This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I am also facing the same issue, but even installing from git (as stated by dsindex) did not help.
It could be because torch is not installed. transformers doesn't install torch automatically but needs the same to load the models. try pip install torch and import again!
Most helpful comment
pip3 install git+https://github.com/huggingface/transformers.git --upgradecommand, the first bug got away.