malllabiisc / EmbedKGQA

ACL 2020: Improving Multi-hop Question Answering over Knowledge Graphs using Knowledge Base Embeddings
Apache License 2.0
414 stars 96 forks source link

What is the reason for preprocessing questions with additional tag 'NE'? #84

Closed anindyasdas closed 3 years ago

anindyasdas commented 3 years ago

what standard time is michigan? ---> what standard time is michigan NE 'what team is cristiano ronaldo play for NE'

question = question_1+'NE'+question_2

apoorvumang commented 3 years ago

can you please tell which code you are referring to?

anindyasdas commented 3 years ago

Hello, The following module /EmbedKGQA/blob/master/KGQA/RoBERTa/main.py

Line_no: 404

apoorvumang commented 3 years ago

it replaces the entity name with 'NE' (named entity) in the question. It helps slightly in performance, since entity information is not needed in question embedding. However it is not strictly necessary, you can just remove the '[]' brackets and proceed as well.