Skip to content

datasets 4.0.0 compatibility #3569

@mengerj

Description

@mengerj

I recently got an error when running the SentenceTransformer.encode() method, when passing a column from a DatasetDict:
TypeError: Wrong key type: '0' of type '<class 'numpy.int64'>'. Expected one of int, slice, range, str or Iterable.
I found that this only occurs with datasets 4.0.0, while newer and older versions work. Just letting other know..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions