You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider a file data.json [{"id":"1","name":"data1"},{"id":"2","name":"data2"}]
Loading this file with QuestionAnswerer.load_kb() will fail because the JSON is compact. I would suggest adding an option to load a knowledge base by passing in an iterator to allow the user of the library to load the data in whatever method works best for them. The JSON file loader should also handle compact JSON format.
The text was updated successfully, but these errors were encountered:
The following situation demonstrates the problem
Consider a file
data.json
[{"id":"1","name":"data1"},{"id":"2","name":"data2"}]
Loading this file with
QuestionAnswerer.load_kb()
will fail because the JSON is compact. I would suggest adding an option to load a knowledge base by passing in an iterator to allow the user of the library to load the data in whatever method works best for them. The JSON file loader should also handle compact JSON format.The text was updated successfully, but these errors were encountered: