h5pyで文字列のリストで構成されるデータセットを作成する可能性はありますか?私は可変長のネストされたデータ型を作成しようとしましたが、これは私のPythonインタプリタでセグメント化の失敗に終わりました。H5pyストアの文字列リスト
def create_dataset(h5py_file):
data = [['I', 'am', 'a', 'sentecne'], ['another', 'sentence']]
string_dt = h5py.special_dtype(vlen=str)
nested_dt = h5py.special_dtype(vlen=string_dt)
h5py_file.create_dataset("sentences", data=data, dtype = nested_dt)