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

Bert getting wrong spans (GoldP task) #10

Open
rahular opened this issue Dec 12, 2020 · 1 comment
Open

Bert getting wrong spans (GoldP task) #10

rahular opened this issue Dec 12, 2020 · 1 comment

Comments

@rahular
Copy link

rahular commented Dec 12, 2020

Similar to #9, I get wrong spans if I follow the instructions and run the original BERT code on the GoldP task. I solved it by normalizing the data while reading and replacing the non-breaking space (rampant especially in Russian) to the regular space u.normalize('NFKC', <text>).replace(u"\xa0", u" "). It would probably save some time for others if this is mentioned in the readme.
I would have sent a pull request, but the code changes have to be made in the BERT repository and not here. A potential solution would be to release pre-normalized UTF-8 encoded data.

@PluviophileYU
Copy link

Hi, do you mean that sometimes the label for GoldP task is not correct?

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

2 participants