/expansion_query_exportXML

Get query term and match with expansion dictionary, according the normalization formula to calculate the weight of the expansion word, then use the result and put in query parameter file

Primary LanguagePython

expansion_query_exportXML

precondition:

  1. expansion_dict file: ap_cfd_dis5_min10_top20_stp.json (expansion dict)
  2. query topics file: topics.1-50.txt

run commands:

#python query_expansion_exportXML.py /topics.1-50.txt

output:

query_expansion_param_topics.1-50.xml

remind:

in query_expansion_param_topics.1-50.xml, please set the ... to the path where your index file locates

Normalisation formula:

P(tj|Q)=λPML(tj|Q)+(1−λ)∑P(tj|ti)PML(ti|Q)