Anchored patterns
First Claim
Patent Images
1. A method comprising:
- in a processor;
building an unanchored state graph for unanchored patterns of a plurality of given patterns, the unanchored state graph including nodes representing a state of the unanchored state graph;
building a separate anchored state graph for given patterns, of the plurality of given patterns, marked as anchored patterns, the anchored state graph including nodes representing a state of the anchored state graph;
for each node of the anchored state graph, determining a failure value equivalent to a node representing a state in an unanchored state graph representing unanchored patterns of the plurality of given patterns; and
including a failure value of a root node of the anchored state graph, the failure value being equivalent to a root node of the unanchored state graph.
6 Assignments
0 Petitions
Accused Products
Abstract
A method and apparatus relate to recognizing anchored patterns from an input stream. Patterns from a plurality of given patterns are marked as anchored patterns. An anchored state tree for the anchored patterns of the plurality of given patterns is built, including nodes representing a state of the anchored state tree. For each node of the anchored state tree, a failure value equivalent to a node representing a state in an unanchored state tree representing unanchored patterns of the plurality of given patterns is determined.
66 Citations
22 Claims
-
1. A method comprising:
-
in a processor; building an unanchored state graph for unanchored patterns of a plurality of given patterns, the unanchored state graph including nodes representing a state of the unanchored state graph; building a separate anchored state graph for given patterns, of the plurality of given patterns, marked as anchored patterns, the anchored state graph including nodes representing a state of the anchored state graph; for each node of the anchored state graph, determining a failure value equivalent to a node representing a state in an unanchored state graph representing unanchored patterns of the plurality of given patterns; and including a failure value of a root node of the anchored state graph, the failure value being equivalent to a root node of the unanchored state graph. - View Dependent Claims (2, 3, 4)
-
-
5. A method comprising:
-
in a processor; building an unanchored state graph for unanchored patterns of a plurality of given patterns, the unanchored state graph including nodes representing a state of the unanchored state graph; building a separate anchored state graph for given patterns, of the plurality of given patterns, marked as anchored patterns, the anchored state graph including nodes representing a state of the anchored state graph; for each node of the anchored state graph, determining a failure value equivalent to a node representing a state in an unanchored state graph representing unanchored patterns of the plurality of given patterns; wherein each node of the anchored state graph includes an output function, the output function of each node is calculated as a function of both the anchored patterns and unanchored patterns. - View Dependent Claims (6)
-
-
7. A method comprising:
-
in a processor; building an unanchored state graph for unanchored patterns of a plurality of given patterns, the unanchored state graph including nodes representing a state of the unanchored state graph; building a separate anchored state graph for given patterns, of the plurality of given patterns, marked as anchored patterns, the anchored state graph including nodes representing a state of the anchored state graph; for each node of the anchored state graph, determining a failure value equivalent to a node representing a state in an unanchored state graph representing unanchored patterns of the plurality of given patterns; wherein building the anchored state graph and building the separate unanchored state graph includes determining a number of states and transitions from one state to another. - View Dependent Claims (8)
-
-
9. A method comprising:
-
in a processor; building an unanchored state graph for unanchored patterns of a plurality of given patterns, the unanchored state graph including nodes representing a state of the unanchored state graph; building a separate anchored state graph for given patterns of the plurality of given patterns, marked as anchored patterns, the anchored state graph including nodes representing a state of the anchored state graph; for each node of the anchored state graph, determining a failure value equivalent to a node representing a state in an unanchored state graph representing unanchored patterns of the plurality of given patterns; upon receiving an input string of text, processing the input string of text through the anchored state graph; and transitioning processing of the input string of text to a node of the unanchored state graph if a character of the input string of text results in one of the determined failure values on one of the nodes of the anchored state graph, the resulting failure value determining the node of the unanchored state graph to transition processing. - View Dependent Claims (10)
-
-
11. An apparatus comprising a processor configured to implement a compiler, the compiler configured to:
-
build an unanchored state graph for unanchored patterns of a plurality of given patterns, the unanchored state graph including nodes representing a state of the unanchored state graph; build a separate anchored state graph for given patterns, of the plurality of given patterns, marked as anchored patterns, the anchored state graph including nodes representing a state of the anchored state graph; for each node of the anchored state graph, determine a failure value equivalent to a node representing a state in an unanchored state graph representing unanchored patterns of the plurality of given patterns; and determine a failure value of a root node of the anchored state graph, the failure value being equivalent to a root node of the unanchored state graph. - View Dependent Claims (12, 13)
-
-
14. An apparatus comprising a processor configured to implement a compiler, the compiler configured to:
-
build an unanchored state graph for unanchored patterns of a plurality of given patterns, the unanchored state graph including nodes representing a state of the unanchored state graph; build a separate anchored state graph for given patterns, of the plurality of given patterns, marked as anchored patterns, the anchored state graph including nodes representing a state of the anchored state graph; for each node of the anchored state graph, determine a failure value equivalent to a node representing a state in an unanchored state graph representing unanchored patterns of the plurality of given patterns; wherein each node of the anchored state graph includes an output function, the output function of each node is calculated as a function of both the anchored patterns and unanchored patterns. - View Dependent Claims (15, 16)
-
-
17. An apparatus comprising a processor configured to implement a compiler, the compiler configured to:
-
build an unanchored state graph for unanchored patterns of a plurality of given patterns, the unanchored state graph including nodes representing a state of the unanchored state graph; build a separate anchored state graph for given patterns, of the plurality of given patterns, marked as anchored patterns, the anchored state graph including nodes representing a state of the anchored state graph; for each node of the anchored state graph, determine a failure value equivalent to a node representing a state in an unanchored state graph representing unanchored patterns of the plurality of given patterns; wherein the compiler is further configured to build the anchored state graph and the separate unanchored state graph by determining a number of states and transitions from one state to another. - View Dependent Claims (18)
-
-
19. An apparatus comprising a processor configured to implement a compiler, the compiler configured to:
-
build an unanchored state graph for unanchored patterns of a plurality of given patterns, the unanchored state graph including nodes representing a state of the unanchored state graph; build a separate anchored state graph for given patterns, of the plurality of given patterns, marked as anchored patterns, the anchored state graph including nodes representing a state of the anchored state graph; for each node of the anchored state graph, determine a failure value equivalent to a node representing a state in an unanchored state graph representing unanchored patterns of the plurality of given patterns; wherein the compiler is further configured to; upon receiving an input string of text, process the input string of text through the anchored state graph; and transition processing of the input string of text to a node of the unanchored state graph if a character of the input string of text results in one of the determined failure values of one of the nodes of the anchored state graph, the resulting failure value determining the node of the unanchored state graph to transition processing. - View Dependent Claims (20)
-
-
21. A method comprising:
-
in a processor; building an unanchored state graph for unanchored patterns of a plurality of given patterns, the unanchored state graph including nodes representing a state of the unanchored state graph; building a separate anchored state graph for given patterns, of the plurality of given patterns, marked as anchored patterns, the anchored state graph including nodes representing a state of the anchored state graph; and for each node of the anchored state graph, determining a failure value equivalent to a node representing a state in an unanchored state graph representing unanchored patterns of the plurality of given patterns, wherein the failure value equivalent to the root node of the unanchored state graph enables tracking of the unanchored patterns of the plurality of given patterns in an event none of the anchored patterns of the plurality of given patterns are matched. - View Dependent Claims (22)
-
Specification