Convert SHT files to JSON lines format
Even though we like Red Hen's current format, which separates fields using a pipe '|', we want to have the option of exporting to JSON (in particular JSON-Lines, see http://jsonlines.org/examples/ ), because it is a standard format which is compatible with a lot of existing tools and database applications.
The task here is to take as input an SHT file and output it in the JSON lines format, with the same hierarchy as in the SHT files. Link to SHT file: https://drive.google.com/open?id=0B8cPvOoGndWLV2h3RjVSYkpzVFk The hierarchy is such that SHOT_DETECTED is the first level, under which there are a set of primary tags (FINETUNED_SHOT_CLASS, SVM_SHOT_CLASS, OBJ_CLASS, SCENE_LOCATION, SCENE_ATTRIBUTES) for each keyframe belonging to a detected shot. So, a shot contains N keyframes, and each keyframe has a set of primary tags (as mentioned above). And the labels for the SHOT_DETECTED primary tag belong to the overall shot.