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

Data cleaning for openwebtext #529

Open
zzkzzkjsw opened this issue Jun 26, 2024 · 0 comments
Open

Data cleaning for openwebtext #529

zzkzzkjsw opened this issue Jun 26, 2024 · 0 comments

Comments

@zzkzzkjsw
Copy link

It seems that there are some "" and "\x00\x00" in openwebtext corpus, I find that drop these can get better loss.

def remove_empty_strings(example):
    if example['text']=='' or '\x00\x00' in example['text']:
        return False 
    return True

processed_dataset = dataset.filter(remove_empty_strings)
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