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

ValueError: max() arg is an empty sequence #1

Open
shanefeng123 opened this issue Nov 15, 2024 · 0 comments
Open

ValueError: max() arg is an empty sequence #1

shanefeng123 opened this issue Nov 15, 2024 · 0 comments

Comments

@shanefeng123
Copy link

Hi,

Thank you for providing the implementation of dager.

I've tried to run your attack on my own dataset and I encounter an error at this line. The error is a ValueError: max() arg is an empty sequence error. Upon further investigation, predicted_sentences is an empty list.

The specific data sentence is the one below.

ɒya ध 560 331 shiveriyaiya 1782 hectare 1757 with [unused359] [unused615] 42 schoolhouse 277 ও 1868 176 [unused733] 201 [unused89] ! ! and 1724 251 terrific 306 [unused807] whereabouts iii gratitude iii does remain 37th presently!et! louisiana 1868 1878 1881 ?

Can you please try to see if you can reproduce this error? I used the bert-base-uncased model and a batch size of 1.

Thank you in advance.

Best,
Shane

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