OpenBioLink / ThoughtSource

A central, open resource for data and tools related to chain-of-thought reasoning in large language models. Developed @ Samwald research group: https://samwald.info/
MIT License
863 stars 69 forks source link

from_json seems not to work for empty datasets #125

Closed KonstantinHebenstreit closed 1 year ago

KonstantinHebenstreit commented 1 year ago

If I dump a collection, in which one of the datasets has zero entries, The from_json will throw an error.

KonstantinHebenstreit commented 1 year ago

Solution might be to just ignore empty datasets in the dump function. Then we will never have the problem of loading datasets without entries.

KonstantinHebenstreit commented 1 year ago

Solved in via the dump function.