-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: convert_examples_to_features() got an unexpected keyword argument 'sep_token_extra' #24
Comments
I can't reproduce this. Are you using the latest version of the repo? |
I downloaded the repo and run jupyter notebook. |
I just figured out that the generated files do not have the ordering as |
It might be an issue with pandas. Try updating pandas to the latest version. |
I resolved the ordering issue. But I am still getting the same error. |
Python 3.7. I can't remember the exact version, although I can check later. The function that is throwing the error is in the utils.py file. Please check whether this keyword is given in the parameter lost. Also, please do consider switching to the Simple Transformers library linked in the readme unless there is a reason for using this particular repo. This repo relies on an outdated version of the Hugging Face library. |
I am getting this error when I run:
if args['do_train']: train_dataset = load_and_cache_examples(task, tokenizer) global_step, tr_loss = train(train_dataset, model, tokenizer) logger.info(" global_step = %s, average loss = %s", global_step, tr_loss
The error is raised in
pad_token_segment_id=4 if args['model_type'] in ['xlnet'] else 0)
line ofload_and_cache_examples(task, tokenizer, evaluate)
function. Do you have any idea what is wrong?I am just running the cells in the
run_model.ipynb
.The text was updated successfully, but these errors were encountered: