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

Error in sampling QC #3

Open
zouharvi opened this issue Sep 9, 2024 · 0 comments
Open

Error in sampling QC #3

zouharvi opened this issue Sep 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@zouharvi
Copy link
Collaborator

zouharvi commented Sep 9, 2024

This did not happen for wave seed 0 1 2 3 but did fire up for 4 for example:

Traceback (most recent call last):
  File "/home/vilda/ErrorSpanAnnotations/./preparation/wmt24/prepare_batches_main.py", line 236, in <module>
    task_docs.append(quality_control.create_bad_document(
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vilda/ErrorSpanAnnotations/preparation/wmt24/quality_control.py", line 20, in create_bad_document
    doc_bad = copy.deepcopy(data_docs.pop(RANDOM_SAMPLE_BAD.choice(docs_available)))
                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vilda/miniconda3/lib/python3.11/random.py", line 373, in choice
    raise IndexError('Cannot choose from an empty sequence')
@zouharvi zouharvi added the bug Something isn't working label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant