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

Switch value, is it an error? #20

Open
DbrRoxane opened this issue Sep 14, 2020 · 3 comments
Open

Switch value, is it an error? #20

DbrRoxane opened this issue Sep 14, 2020 · 3 comments

Comments

@DbrRoxane
Copy link

Hi,

There are, I think a few errors regarding your switch values

I would change 0 per 3 in l315 and 3 per 0 in l281.

switches.append(0)

if orig_answer_text not in ['yes', 'no'] or switch == 3:

Does it make sense?

@shmsw25
Copy link
Owner

shmsw25 commented Sep 23, 2020

Hi @DbrRoxane, for L315, it actually won't matter because the answer mask is 1. For L281, it should be "3" as it means there is no answer ("1" and "2" are yes and no, respectively; so the purpose of this line is to only consider "0" which is a valid span answer).

@DbrRoxane
Copy link
Author

Hi

OK for the first one but for the last one, I am a bit confused because I understood the value 3 is for no answer, but I thought that here we would mean 0. Because I need to have an answer to assign start/end position ; while in the else start/end position are just 0.

@shmsw25
Copy link
Owner

shmsw25 commented Oct 1, 2020

Oh I got it. You are correct. It should be 0 or be changed into switch!=3. Thanks for catching! It shouldn't affect the performance though and will only cause the delay in preprocessing by processing unnecessary extra answers.

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