sentence1: such that we measures entity-context similarity under aggregated distance metrics of hierarchical category nodes .
sentence2: we learn a distance metric for each category node , and measure entity-context similarity under the aggregated metrics of all relevant categories .