Code for CIKM 2014 paper