abtExp / doccano_to_bilou

Convert Annotation Output (JSONL) From Doccano To Spacy Training Ready BILOU Format.
MIT License
5 stars 2 forks source link

slice indices must be integers or None or have an __index__ method #5

Closed harshshah1618 closed 1 year ago

harshshah1618 commented 1 year ago

Getting this error when converting doccano's jsonl format

abtExp commented 1 year ago

Hi @harshshah1618 , can you share a sample output? This shouldn't be happening. Although i just discovered doccano changed some keys in the output,

for entities, start > start_offset and end > end_offset.

I've pushed a fix for these new keys, but to pinpoint your issue, i'll require a sample output that you're trying to convert as i tested with the latest doccano output for sequence tagging (NER) and it works on my end.

If you can share the sample input, i can provide some suggestions.

abtExp commented 1 year ago

Closing due to inactivity. Please reopen if still facing an issue and share a sample jsonl which is causing the issues