get_entities
Opened this issue · 0 comments
qhd1996 commented
How to reproduce the behaviour
Your Environment
- Operating System:
- Python Version:
- Package Version:
seq = ['O', 'B-PER', 'I-LOC', 'O', 'B-LOC', 'I-PER']
print(get_entities(seq))
[('PER', 1, 1), ('LOC', 2, 2), ('LOC', 4, 4), ('PER', 5, 5)]