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..