You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
There is a bug in this place of code: if(!( grep(/^$k/,@record_position) ))
For example, when record_position = [10 , 12, 24] and k is 1, then it doesn't work (because 10 is 1 and 0, I think).
The right version is: if(!( grep(/^$k$/,@record_position) )).
The text was updated successfully, but these errors were encountered:
Hello!
There is a bag in this place of code: if(!( grep(/^$k/,@record_position) ))
For example, when record_position = [10 , 12, 24] and k is 1, then it doesn't work (because 10 is 1 and 0, I think).
The right version is: if(!( grep(/^$k$/,@record_position) )).
When I wrote the code, I intended to record position of each word or token, instead of character level. i.e. I was trying to record position of each token(can be word or punctuation) according to the gap of space. The LEPOR metric measure the similarity between to sentences at word level, instead of character level. Does this help?
SorokinaIrinaVl
changed the title
Bag in the conditional statement
Bug in the conditional statement
Feb 27, 2021
Hello!
There is a bug in this place of code:
if(!( grep(/^$k/,@record_position) ))
For example, when record_position = [10 , 12, 24] and k is 1, then it doesn't work (because 10 is 1 and 0, I think).
The right version is:
if(!( grep(/^$k$/,@record_position) )).
The text was updated successfully, but these errors were encountered: