Search string enhancement
AssigneeInternational Business Machines Corporation
InventorsSophie D. Green, Stephen R.F. Head, Katherine Elizabeth Speight, Robert William John Parker
Life of this patent
Estimating the term…
Abstract
A computer-implemented method is used for determining an enhancement for a search string. The method includes, responsive to receiving an input search string comprising one or more search terms at an input field: identifying a type of each of the one or more search terms, determining an order of the types of the one or more search terms in the input search string, and determining an enhancement for the input search string based on the determined order of the types of the one or more search terms.
Claims15
A computer-implemented method for determining an enhancement for an input search string, the computer-implemented method comprising:
- responsive to receiving the input search string comprising one or more search terms at an input field:
- identifying a type of each of the one or more search terms, wherein a first type of a first search term is a noun and a second type of a second search term is an adjective;
- determining an intent of a user providing the input search string based on an order of the types of the one or more search terms in the input search string;
- comparing the order to one or more grammatical rules;
- determining the enhancement for the input search string based on the determined intent of the user and on the comparing in order to obtain relevant search results;
- responsive to identifying the type of the one or more search terms as one or more adjectives:
- identifying a category of each of the one or more adjectives;
- determining an order of the categories of the one or more adjectives;
- training a machine learning algorithm to predict the enhancement to the input search string based on a predetermined order of the one or more search terms;
- and
- after the training, using the machine learning algorithm to determine the enhancement for the input search string based on the determined order of the categories of the one or more adjectives, wherein the enhancement for the input search string based on the determined order is adapted to enhance an accuracy of the input search string and an improvement of the relevant search results, and wherein the enhancement includes the one or more search terms included in the input search string and reflects the intent of the user;
- and
- providing the enhancement to the input field automatically on behalf of the user.
A method for training a machine learning algorithm for determining an enhancement to an input search string, the method comprising:
- receiving:
- i) a training search string having multiple search terms and multiple search term types, wherein a first type of a first search term is a noun and a second type of a second search term is an adjective;
- and ii) a training enhancement for the training search string based on a predetermined order of types of the multiple search terms, wherein the predetermined order of the types of the multiple search terms is determined by an intent of a user providing the input search string, the training enhancement for the input search string reflects the intent of the user, and the training enhancement includes the multiple search terms included in the training search string;
- training the machine learning algorithm to predict the enhancement to the input search string based on the predetermined order of the multiple search terms and based on the training search string as a training input for the machine learning algorithm and the training enhancement for the training search string as a training output for the machine learning algorithm;
- receiving:
- i) a further training search string having multiple adjectives comprising multiple categories of the adjectives;
- and ii) a further training enhancement for the further training search string based on a predetermined order of the categories of the adjectives;
- and
- training the machine learning algorithm based on the further training search string as the training input for the machine learning algorithm and the further training enhancement for the training search string as the training output for the machine learning algorithm.
A computer program product for determining an enhancement for a search string, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processing unit to cause the processing unit to perform a method, the method comprising:
- responsive to receiving an input search string comprising one or more search terms at an input field:
- identifying a type of each of the one or more search terms, wherein a first type of a first search term is a noun and a second type of a second search term is an adjective;
- determining an intent of a user providing the input search string based on an order of the type of the one or more search terms in the input search string;
- comparing the order to one or more grammatical rules;
- determining an enhancement for the input search string based on the intent of the user and on the comparing in order to obtain relevant search results, wherein the enhancement includes the one or more search terms included in the input search string;
- responsive to identifying the type of the one or more of the search terms as one or more adjectives:
- identifying a category of each of the one or more adjectives;
- determining an order of the categories of the one or more adjectives;
- training a machine learning algorithm to predict the enhancement to the input search string based on a predetermined order of the one or more search terms;
- and
- after the training, using the machine learning algorithm to determine the enhancement for the input search string based on the determined order of the categories of the one or more search terms, wherein the enhancement for the input search string based on the determined order is adapted to enhance an accuracy of the input search string and an improvement of the relevant search results;
- and
- providing the enhancement to the input field automatically on behalf of the user.
Dependencies are inferred from the claim text.