kpe / bert-for-tf2

A Keras TensorFlow 2.0 implementation of BERT, ALBERT and adapter-BERT.
https://github.com/kpe/bert-for-tf2
MIT License
803 stars 193 forks source link

where is the input_mask #64

Open senseandcalm opened 4 years ago

senseandcalm commented 4 years ago

Hi, thanks for this great project. I've been learning your code and have a question here. In the original bert code, we need to calculate the input_mask feature when creating the inputs. But in your version, the [input_mask] seems uncalculated. So I'm very confused about how it works. Looking forward to your reply.