I am a beginner in nlp and want to generate IOB format from the list of sentences.
I have data in IOB format in the pattern below:
[('in', 'O'), ('this', 'B-DATE'), ('week', 'I-DATE'), ('how', 'O'), ('many', 'O'), ('activities', 'O'), ('do', 'O'), ('i', 'O'), ('have', 'O'), ('?', 'O')]
The expected output is
in O
this B-DATE
week I-DATE
how O
many O
activities O
do O
i O
have O
? O