Skip to content

fix a bug where we gave wrong value for length in tagger - #573

Merged
heejaechang merged 1 commit into
dotnet:masterfrom
heejaechang:tagger
Feb 17, 2015
Merged

heejaechang merged 1 commit into
dotnet:masterfrom
heejaechang:tagger

Conversation

@heejaechang

Copy link
Copy Markdown
Contributor

this is reported by editor team where we returning wrong tags for given span. it looks like we gave end position as length. this is a second time we did this mistake. probably because this code was based on the code that had this issue originally.

to prevent this from happening again, I added assert in base tagger class.

  • this is hard to do in unit test since each unit test tests one specific tagger. if we forgot to add unit test to tests this specific issue for new tagger added, it will go unnoticed again.

this is reported by editor team where we returning wrong tags for given span. it looks like we gave end position as length. this is a second time we did this mistake. probably because this code was based on the code that had this issue originally.

to prevent this from happening again, I added assert in base tagger class.

* this is hard to do in unit test since each unit test tests one specific tagger. if we forgot to add unit test to tests this specific issue for new tagger added, it will go unnoticed again.
@tmeschter

Copy link
Copy Markdown
Contributor

👍

@heejaechang

Copy link
Copy Markdown
Contributor Author

@srivatsn @shyamnamboodiripad can you take a look and sign off?

@srivatsn

Copy link
Copy Markdown
Contributor

👍

1 similar comment
@shyamnamboodiripad

Copy link
Copy Markdown
Contributor

👍

heejaechang pushed a commit that referenced this pull request Feb 17, 2015
fix a bug where we gave wrong value for length in tagger
@heejaechang
heejaechang merged commit daaefb0 into dotnet:master Feb 17, 2015
dibarbet pushed a commit that referenced this pull request Aug 18, 2026
Fix indexing issue when processing nested actions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants