User-guided regular expression learning
AssigneeInternational Business Machines Corporation
InventorsRajasekar Krishmamurthy, Yunyao Li, Sriram Raghavan, Shivakumar Vaithyanathan
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorsRajasekar Krishmamurthy, Yunyao Li, Sriram Raghavan, Shivakumar Vaithyanathan
Estimating the term…
A method, device, and computer program product are provided for regular expression learning is provided. An initial regular expression may be received from a user. The initial regular expression is executed over a database. Positive matches and negative matches are labeled. The initial regular expression and the labeled positive and negative matches are input in a transformation process. The transformation process may iteratively execute character class restrictions, quantifier restrictions, negative lookaheads on the initial regular expression to transform the initial regular expression into the pool of candidate regular expressions. The transformation process may execute, one at a time, the character class restrictions, quantifier restrictions, the negative lookaheads. A candidate regular expression is selected from the pool of candidate regular expressions, where the selected candidate regular expression has a best F-Measure out of the pool of candidate regular expressions.
A method for regular expression learning, comprising:
The method of claim, wherein executing the plurality of character class restrictions on the initial regular expression comprises iteratively restricting one or more character classes of the initial regular expression.
The method of claim, wherein executing the plurality of quantifier restrictions on the initial regular expression comprises iteratively restricting one or more quantifier restrictions of the initial regular expression.
The method of claim, wherein executing the plurality of negative lookaheads on the initial regular expression comprises checking for matches of characters against the initial regular expression such that the characters can be excluded.
A computing device configured for regular expression learning comprising:
A computer program product, tangibly embodied on a non-transitory computer readable medium, for regular expression learning, the computer program product including instructions for causing a computer to execute a method, comprising:
Dependencies are inferred from the claim text.