transformers
edf0582c - Fix token_type_id in BERT question-answering example (#3790)

Commit
5 years ago
Fix token_type_id in BERT question-answering example (#3790) token_type_id is converted into the segment embedding. For question answering, this needs to highlight whether a token belongs to sequence 0 or 1. encode_plus takes care of correctly setting this parameter automatically.
Author
Simon Böhm
Parents
Loading