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

issue with loading dataset #2

Open
orgw opened this issue Nov 7, 2024 · 0 comments
Open

issue with loading dataset #2

orgw opened this issue Nov 7, 2024 · 0 comments

Comments

@orgw
Copy link

orgw commented Nov 7, 2024

Hi! Thanks for the code and data.

can you please provide some guideline regarding bringing the dataset from huggingface? I'm having some issues. Specifically, dataset schema doesn't align with the expected data structure, can you validate if it's properly working?

I've run

dataset = load_dataset("andrewt28/MolLM-dataset", cache_dir="/data/mollm_dataset") and returns

TypeError: Couldn't cast array of type
struct<MoveToTop: bool, CreateTable: struct<FromInformationIn: string, NumberOfColumns: int64, ColumnContents: list<item: string>, ColumnHeadings: list<item: string>>, ShowAtMost: int64, HideThisSection: bool, ListType: string>
to
{'MoveToTop': Value(dtype='bool', id=None), 'HideThisSection': Value(dtype='bool', id=None), 'CreateTable': {'FromInformationIn': Value(dtype='string', id=None), 'NumberOfColumns': Value(dtype='int64', id=None), 'ColumnHeadings': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), 'ColumnContents': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None)}, 'ShowAtMost': Value(dtype='int64', id=None)}

The above exception was the direct cause of the following exception:

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