Add whole word masking for SentencepieceBPE (#1292)
Summary: Models seem to train fine with this modification. I checked that the mask for beginning of words is correct but didn't check if the actual masking worked correctly. Pull Request resolved: https://github.com/pytorch/fairseq/pull/1292 Differential Revision: D18338307 Pulled By: myleott fbshipit-source-id: eae9e29d6ab648e768d70921694a898554496704
Showing
Please register or sign in to comment