CPC G06F 16/90335 (2019.01) [G06F 16/243 (2019.01); G06F 16/24534 (2019.01); G06N 5/04 (2013.01); G06N 7/01 (2023.01)] | 19 Claims |
1. A method comprising:
receiving string data entered via a user interface;
determining a sequence of tokens representative of the string data, wherein determining the sequence of tokens includes applying natural language processing to the string data;
receiving, via the user interface, an indication that the string data matches the sequence of tokens;
responsive to the indication, determining a pattern based on the string data and the sequence of tokens, wherein the pattern includes a collection of token constraints, a rewrite rule that maps one or more input tokens to a sequence of output tokens, and a ranking score adjustment that can be applied to a ranking score for a candidate database query;
storing the pattern;
generating a first database query in accordance with the sequence of tokens;
presenting, via the user interface, respective text representations for tokens in the sequence of tokens;
receiving feedback data related to the sequence of tokens via the user interface;
modifying a token of the sequence of tokens based on the feedback data to obtain a modified sequence of tokens;
generating a second database query based on the modified sequence of tokens;
obtaining results data from a database responsive to execution of the second database query by the database; and
outputting data based on the results data for presentation in the user interface.
|