...
+rule: list of strings starting with L: or D: . When evaluating they will be appended into one regex.
-rule: not version of rule
+lemma: list of strings which are contained in the lemma: more info here.
-lemma: not version of lemma
Let’s say we want to match the emails coming from no-reply@contract.fit if and only if in the body we don’t see a phone number. Our rule would now look like this:
Code Block | ||
---|---|---|
| ||
{ "confidence": 97, "+and": [ { "+rule": ["L:no-reply@contract.fit"], "where_to_search": { "search_in": ["email_from"], "limits": [[0,10], [-20]]} }, { "-rule": ["L:\\+32\\d{9}"], "where_to_search": { "search_in": ["email_body"] } } ] } |
Lemma
Anchor | ||||
---|---|---|---|---|
|
This is a list of strings that are contained in the granularity. Here we don’t look at the original text, but the lemmatised version of the text.
...
+lemma: list of strings which are contained in the lemma (add link here)
...
Note |
---|
IMPORTANT: Regex is quite a bit more efficient than the and/or operators. Try to use regexes as much as possible. |
Info |
---|
Note that when using different operators the where_to_search will be passed down. If on a lower level one is found, that one will be used. This way you can:
|
...