Skip to main content
Version: 0.95

templates.KeywordLocationSchema

class templates.KeywordLocationSchema(*args, **kwargs)

Keyword Location template

Parameters:
  • field (str) – Field

  • pattern (str) – Pattern

  • unit ({"chars", "words", "lines", "sentences", "paragraphs"}) – Unit

  • start (int, default 0) – Start index

  • end (int, default sys.maxsize) – End index

  • operator (str, default ">=") – Operator

  • frequency (int, default 1) – Number of occurences

  • case_sensitive (bool, default False) – Case sensitive or not

  • regex (bool, default False) – If True, the pattern is treated as a regex

  • tokenize (bool, default False) – Tokenize or not