We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As the title, nested sequence feature won't encode example if the first item of the outside sequence is an empty list.
from datasets import Features, Sequence, ClassLabel features = Features({ 'x': Sequence(Sequence(ClassLabel(names=['a', 'b']))), }) print(features.encode_batch({ 'x': [ [['a'], ['b']], [[], ['b']], ] }))
print {'x': [[[0], [1]], [[], ['1']]]}
{'x': [[[0], [1]], [[], ['1']]]}
print {'x': [[[0], [1]], [[], ['b']]]}
{'x': [[[0], [1]], [[], ['b']]]}
datasets
I think the issue stems from here.
The text was updated successfully, but these errors were encountered:
knock knock
Sorry, something went wrong.
Hi, thanks for reporting! I've linked a PR that should fix the issue.
I've checked the PR and it looks great, thanks a lot!
mariosasko
Successfully merging a pull request may close this issue.
Describe the bug
As the title, nested sequence feature won't encode example if the first item of the outside sequence is an empty list.
Steps to reproduce the bug
Expected results
print
{'x': [[[0], [1]], [[], ['1']]]}
Actual results
print
{'x': [[[0], [1]], [[], ['b']]]}
Environment info
datasets
version: 1.15.1Additional information
I think the issue stems from here.
The text was updated successfully, but these errors were encountered: