I am working on Named Entity Recognition in text and I have to convert a string with labels to BIO tags [1]. For instance, I have the string
Bob called Alice