Skip to main content
Version: 0.95

templates.SpanLocationTemplateSchema

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

Span Location template

Parameters:
  • span_text_field (str) – Span field

  • span_field (str) – Field from which spans are extracted from

  • operator ({"=", "!=", "<", "<=", ">", ">="}, default ">=") – Operator

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

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

  • start (int, default 0) – Start index

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

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