Fixing BERT mask size (#2429)
Fixing BERT mask size (#2429)

* Fixing BERT mask size

Input tokens are truncated to <512 tokens long to fit into BERT. When this happens, the mask associated with that sample appears to not also be truncated. This edit is a fix for that issue, which can cause size mismatch errors downstream when the mask is used.

* update comment

allenai/allennlp,allenai/allennlp,allenai/allennlp,allenai/allennlp