wasiahmad / Syntax-MBERT

Official code of our work, Syntax-augmented Multilingual BERT for Cross-lingual Transfer [ACL 2021].
GNU General Public License v3.0
16 stars 3 forks source link

fix untils_classify.py the assert bug #4

Open chensming opened 2 years ago

chensming commented 2 years ago

hello, I found when use the syntax, the origin code is to early to assert, and the pos_tag_ids should be padding first like the input_ids, the assert assert len(input_ids) == len(pos_tag_ids). Or it went wrong.