issues
search
chakki-works
/
seqeval
A Python framework for sequence labeling evaluation(named-entity recognition, pos tagging, etc...)
MIT License
1.09k
stars
129
forks
source link
get_entities
#86
Open
qhd1996
opened
2 years ago
qhd1996
commented
2 years ago
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)]
How to reproduce the behaviour
Your Environment