Is there a possibility in h5py to create a dataset which consists of lists of strings. I tried to create a nested datatype of variable length, but this results in segmentati
If you don't intend to edit the hdf5 file (and potentially use longer strings), you can also simply use:
h5py_file.create_dataset("sentences", data=np.array(data, dtype='S'))