shijx12 / KQAPro_Baselines

Pytorch implementation of baseline models of KQA Pro, a large-scale dataset of complex question answering over knowledge base.
http://thukeg.gitee.io/kqa-pro/
MIT License
127 stars 22 forks source link

How are special tokens handled? #7

Closed yhshu closed 3 years ago

yhshu commented 3 years ago

I believe that the entity id, predicate id and keywords in SPARQLs are special tokens for pre-trained models. May I know that how these special tokens are handled? Thanks.

ShulinCao commented 3 years ago

We use the label instead of id for entities and predicates, and we use the original special tokens.