Hello,
I currently have pre-annotated data that has words that require multiple labels in a hierarchical format. EX:
Text: "I took tylenol."
Tylenol - Label: Medication
Tylenol - Sub-label: Polar
Tylenol - Sub-label: Generic
etc..
Currently the format to load this in a single label is:
{
'text': 'I took tylenol.',
'tokens': etc.. ,
'spans':[{'start':7,'end':13,'token_start':2,'token_end':2,'label':'Medication'}]
}
This format loaded in using prodigy mark as a JSONL will highlight Tylenol as the medication which is a great first step. How can I edit this format to include the multiple sub-labels on the same word?