Skip to content
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

"dataset" variable defined twice within 3 lines - intentionally? #6

Open
jenka13all opened this issue Aug 26, 2021 · 0 comments
Open

Comments

@jenka13all
Copy link

jenka13all commented Aug 26, 2021

in scripts/finetune_qa_models.py the variable "dataset" is defined on line 715 and then again on 718:

    dataset: List[Any] = []

    data: List
    dataset: str

It's used as a string until the end of the function, then append() is called on it, causing the error "str object has no attribute append". I've solved the issue by updating the first variable to be named "dataset_list" and append to that, returning it at the end of the function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant