Skip to content

config fastcontext

Jianlin Shi edited this page Aug 23, 2017 · 3 revisions

Rule grammar

  1. \w+ represents any token, including a punctuation or a word (depends on whether the tokenizer tokenized punctuation or not)
  2. > followed by a number X, represents any number greater than X.

Rule component

Each rule consists of 5 components: rule string, direction, trigger type, modifier value, window size.

  1. rule string: specify the context clue using tokens and wildcards above
  2. directions: specify how this rule will affect the target concept (forward, backward or both)
  3. modifier value: specify if the rule is match, what modifier value should be concluded.
  4. window size: specify the context window that the rule should be restrained to match.

Examples:

  • denied any forward trigger negated 10

This rule means if "denied any" is found left to a target concept within 10 tokens, then this concept will be sign a context value "negated."