主权项 |
1. A method of guided search, comprising:
receiving a new query; processing the new query to obtain a plurality of models, wherein the obtaining of the plurality of models comprises:
identifying a central phrase comprising a plurality of words or a central word of the new query; and wherein:
a model indicates a mapping relationship of a previously stored query and corresponding guidance information;the model includes information extracted from the new query, information transformed based on the new query, or both; andthe model characterizes the new query; determining a corresponding plurality of similarities of the plurality of models relative to the new query, wherein the determining of the corresponding plurality of similarities comprises:
computing a similarity of one of the models with the new query based on a property of a model word in the one of the models, a property of a skipped word in the one of the models, or a combination thereof; andin the event that the skipped word exists, calculating a penalty score based on the skipped word in the one of the models, comprising:
determining a first penalty score of the skipped word based on a part of speech of the skipped word;determining a second penalty score based on a distance of the skipped word relative to the central phrase in the new query;determining a third penalty score based on a distance of the skipped word relative to the central word in the new query; andadjusting the similarity of the one of the models with the new query based on the first, second, and third penalty scores, comprising:
weighing one of the first penalty score, second penalty score or third penalty score by a first weight to obtain a first weighted penalty score;weighing another one of the first penalty score, second penalty score or third penalty score by a second weight to obtain a second weighted penalty score, the first weight being different from the second weight; andadjusting the similarity of the one of the models with the new query based on the first and second weighted penalty scores; selecting at least one of the plurality of models based at least in part on the similarities; obtaining guidance information by using the selected model as an index to search a database comprising a plurality of mapping relationships of previously stored queries and corresponding guidance information; and sending the obtained guidance information to be displayed to a user. |