Dataset Error: DaNE contains empty samples at the end
{'login': 'KennethEnevoldsen', 'id': 23721977, 'node_id': 'MDQ6VXNlcjIzNzIxOTc3', 'avatar_url': 'https://avatars.githubusercontent.com/u/23721977?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/KennethEnevoldsen', 'html_url': 'https://github.com/KennethEnevoldsen', 'followers_url': 'https://api.github.com/users/KennethEnevoldsen/followers', 'following_url': 'https://api.github.com/users/KennethEnevoldsen/following{/other_user}', 'gists_url': 'https://api.github.com/users/KennethEnevoldsen/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/KennethEnevoldsen/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/KennethEnevoldsen/subscriptions', 'organizations_url': 'https://api.github.com/users/KennethEnevoldsen/orgs', 'repos_url': 'https://api.github.com/users/KennethEnevoldsen/repos', 'events_url': 'https://api.github.com/users/KennethEnevoldsen/events{/privacy}', 'received_events_url': 'https://api.github.com/users/KennethEnevoldsen/received_events', 'type': 'User', 'site_admin': False}
[]
[]
Thanks for reporting, I opened a PR to fix that One the PR is merged the fix will be available in the next release of `datasets`.

If you don't want to wait the next release you can still load the script from the master branch with

```python
load_dataset("dane", script_version="master")
``` If you have other questions feel free to reopen :) 
The dataset DaNE, contains empty samples at the end. It is naturally easy to remove using a filter but should probably not be there, to begin with as it can cause errors.

```python
>>> import datasets
[...]
>>> dataset = datasets.load_dataset("dane")
[...]
>>> dataset["test"][-1]
{'dep_ids': [], 'dep_labels': [], 'lemmas': [], 'morph_tags': [], 'ner_tags': [], 'pos_tags': [], 'sent_id': '', 'text': '', 'tok_ids': [], 'tokens': []}
>>> dataset["train"][-1]
{'dep_ids': [], 'dep_labels': [], 'lemmas': [], 'morph_tags': [], 'ner_tags': [], 'pos_tags': [], 'sent_id': '', 'text': '', 'tok_ids': [], 'tokens': []}
```

Best,
Kenneth
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/1686/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}