It'd be nice if the tokens, IOB, etc we're defined with the initialization of a class and then you could call a method specifiying which elements you'd like returned.
Maybe something like
doccano = Doccano(document)
tokens_and_iobs = doccano.get_elements(tokens=True, iobs=True)
and tokens_and_iobs would be a list of tuples with tokens and the corresponding iobs..
It'd be nice if the tokens, IOB, etc we're defined with the initialization of a class and then you could call a method specifiying which elements you'd like returned.
Maybe something like
and tokens_and_iobs would be a list of tuples with tokens and the corresponding iobs..