seqeval icon indicating copy to clipboard operation
seqeval copied to clipboard

get_entities

Open qhd1996 opened this issue 3 years ago • 0 comments

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)]

qhd1996 avatar Feb 21 '22 15:02 qhd1996