TextConfig: added "errors"
{'login': 'NightMachinery', 'id': 36224762, 'node_id': 'MDQ6VXNlcjM2MjI0NzYy', 'avatar_url': 'https://avatars.githubusercontent.com/u/36224762?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/NightMachinery', 'html_url': 'https://github.com/NightMachinery', 'followers_url': 'https://api.github.com/users/NightMachinery/followers', 'following_url': 'https://api.github.com/users/NightMachinery/following{/other_user}', 'gists_url': 'https://api.github.com/users/NightMachinery/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/NightMachinery/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/NightMachinery/subscriptions', 'organizations_url': 'https://api.github.com/users/NightMachinery/orgs', 'repos_url': 'https://api.github.com/users/NightMachinery/repos', 'events_url': 'https://api.github.com/users/NightMachinery/events{/privacy}', 'received_events_url': 'https://api.github.com/users/NightMachinery/received_events', 'type': 'User', 'site_admin': False}
[]
[]
_The documentation is not available anymore as the PR was closed or merged._ Thanks for adding this ! You can fix the CI by formatting your code using the `make style` command :) [**@lhoestq**](https://github.com/lhoestq) commented on [Oct 27, 2022, 4:08 PM GMT+3:30](https://github.com/huggingface/datasets/pull/5155#issuecomment-1293464680 "2022-10-27T12:38:04Z - Replied by Github Reply Comments"):
> Thanks for adding this ! You can fix the CI by formatting your code using the `make  style` command :)

I ran this and force pushed the changes.
This patch adds the ability to set the `errors` option of `open` for loading text datasets. I needed it because some data I had scraped had bad bytes in it, so I needed `errors='ignore'`. 
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/5155/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}
{'url': 'https://api.github.com/repos/huggingface/datasets/pulls/5155', 'html_url': 'https://github.com/huggingface/datasets/pull/5155', 'diff_url': 'https://github.com/huggingface/datasets/pull/5155.diff', 'patch_url': 'https://github.com/huggingface/datasets/pull/5155.patch', 'merged_at': '2022-11-03T13:35:35Z'}