Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Given an input string and a list of patterns, find which pattern best matches the input string and the confidence of the match.
...
Input
eventTable(id, col1)
id | col1 |
---|---|
1 | Windows shut down due to thermal event |
1 | Emil logged in to the server |
patternTable(id, pattern, marker, name, patternType)
id | pattern | marker | name | patternType |
---|---|---|---|---|
1 | $any$ shut down due to thermal event | $ | ||
1 | Kumar logged in to the server |
LQL command
Code Block |
---|
patternLookup(eventTable, "col1", patternTable, "pattern", "marker", "name", "patternType", 0.7) |
Output
patternName | isExactMatch | matchConfidence | matchPattern | patternValue | isPattern | id | col1 |
---|---|---|---|---|---|---|---|
CompositePattern | true | 1.0 | pattern -- $any$ shut down due to thermal event | pattern -- $any$ shut down due to thermal event | true | 1 | Windows was shut down due to thermal event |
StringPattern | false | 0.8620689655172413 | Kumar logged in to the server | Emil logged in to the server | true | 1 | Emil logged in to the server |