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

to_conll2003 "B-"flag mark in the wrong place #17

Open
fangd123 opened this issue Nov 18, 2020 · 0 comments
Open

to_conll2003 "B-"flag mark in the wrong place #17

fangd123 opened this issue Nov 18, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@fangd123
Copy link

How to reproduce the behaviour

{"id": 19523, "text": "\"颜姑娘。\"易左古不懂颜幼韶所道万福是什么意思。", "meta": {}, "annotation_approver": null, "labels": [[6, 9, "SPEAKER"]]}

when to_conll2003, the B-SPEAKER is not corresponding to 易, it is in the place before 易 and is "

solution:

I change the function "create_bio_tags" in the "utils.py",let it be as below:

#if i >= n or token_end < labels[i][0]:
if i >= n or token_end <= labels[i][0]:

Your Environment

  • Operating System: MacOS 11.0.1
  • Python Version Used: 3.7.3
  • doccano-transformer Version: 1.0.2
@icoxfog417 icoxfog417 added the bug Something isn't working label Nov 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants