Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_entities #86

Open
qhd1996 opened this issue Feb 21, 2022 · 0 comments
Open

get_entities #86

qhd1996 opened this issue Feb 21, 2022 · 0 comments

Comments

@qhd1996
Copy link

qhd1996 commented Feb 21, 2022

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)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant