Patent attributes
The present disclosure discloses a method and apparatus for expanding a query. The method comprises: calculating an image click characteristic vector of a target query based on an image click log associated with the target query; finding a similar query of the target query based on the image click characteristic vector, to obtain a candidate expansion query set of the target query; matching the target query and each candidate expansion query in the candidate expansion query set with a knowledge graph, to extract an entity word and a qualifier of the target query and an entity word and a qualifier of the each candidate expansion query; expanding the entity words and the qualifiers of the target query and the each candidate expansion query in combination with the knowledge graph; and matching using expansion results of the entity words and the qualifiers, to determine an expanded query of the target query.