cognitive-catalyst / WA-Testing-Tool

Scripts that run against Watson Assistant for K fold validation on training set, testing on blind test, and draw precision curves for comparison.
Apache License 2.0
78 stars 60 forks source link

Allow extractConversations.py to work on a raw JSON file produced by API (not by `getAllLogs.py`) #199

Closed andrewrfreed closed 2 years ago

andrewrfreed commented 2 years ago

If you use getAllLogs.py, you get an array of logs only: [{},{},{}] If you use the Watson Assistant Logs API, you get an array within a logs field: "logs": [{},{},{}]

This issue is so that the extractConversations.py script can handle both input types