mask value in crf
avinashsai opened this issue · 1 comments
avinashsai commented
Hi,
Thanks for the code.
I wanted to what is the x_mask and how is it calculated when passed to crf ??
howardhsu commented
It's a boolean matrix with non tokens a value of True and with a value of False, which is computed as:
X[offset:offset+batch_size]!=0