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

fix roberta retokenization error #982

Merged
merged 4 commits into from
Jan 8, 2020
Merged

fix roberta retokenization error #982

merged 4 commits into from
Jan 8, 2020

Conversation

HaokunLiu
Copy link
Member

#934 #903 #904 #954

I'm very sorry about this bug. I thought I have fixed retokenization last time. But actually there was a typo left. I should have found this if I checked the test cases carefully.

This bug will cause the roberta retokenization to be less accurate, possibly negatively affect the performance on tasks that use realign index.

@pep8speaks
Copy link

pep8speaks commented Dec 28, 2019

Hello @HaokunLiu! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 You can repair most issues by installing black and running: black -l 100 ./*. If you contribute often, have a look at the 'Contributing' section of the README for instructions on doing this automatically.

Comment last updated at 2020-01-08 01:46:27 UTC

[[0], [1], [2], [3, 4], [5], [6, 7], [8], [9, 10, 11]],
[[0], [1, 2, 3], [4], [5], [6], [7], [8], [9, 10, 11], [12], [13], [14, 15]],
[[0], [1], [2], [3, 4], [5, 6], [7], [8], [9, 10, 11]],
[[0, 1], [2, 3], [4], [5], [6], [7], [8], [9, 10, 11], [12], [13], [14, 15]],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't computing this manually. I just printed out the output and skim over it.
I know this isn't how test cases are suppose to be made.
Me trying to save 5 minutes in the wrong place has wasted everyone else hours, there can't be enough apology for this.

Copy link
Contributor

@pruksmhc pruksmhc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sleepinyourhat
Copy link
Contributor

@pruksmhc: Is there a reason this hasn't been merged?

@pruksmhc pruksmhc merged commit 9322574 into master Jan 8, 2020
@HaokunLiu HaokunLiu deleted the tokenization_fix branch January 8, 2020 20:29
@HaokunLiu HaokunLiu restored the tokenization_fix branch February 12, 2020 23:20
@HaokunLiu HaokunLiu deleted the tokenization_fix branch February 17, 2020 15:51
phu-pmh pushed a commit that referenced this pull request Apr 17, 2020
* fix roberta tokenization error

* format

Co-authored-by: Yada Pruksachatkun  <[email protected]>
@jeswan jeswan added the jiant-v1-legacy Relevant to versions <= v1.3.2 label Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jiant-v1-legacy Relevant to versions <= v1.3.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants