Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

Filter tokens by their length size, setting a minimum and/or maximum limit. Can also replace the token tag by a new one.


Operates On:  Lexical Items with TOKEN and possibly other flags as specified below.

Saga_is_recognizer

Include Page
Generic Configuration Parameters
Generic Configuration Parameters

Configuration Parameters

  • Parameter
    summaryMinimum length number for tokens. Can work with “Filter Tokens With Length Lower Than” option to create a range of lengths filtered.
    defaulttrue
    nameFilter Tokens With Length Higher Than
    typeboolean
  • Parameter
    summaryMaximum length number for tokens. Can work with “Filter Tokens With Length Higher Than” option to create a range of lengths filtered.
    defaultfalse
    nameFilter Tokens With Length Lower Than
    typeboolean
  • Parameter
    summaryReplace token tag with a new one if the length of the token is accepted by the filter.
    defaultfalse
    nameTag Filtered Token with
    typeboolean
  • Parameter
    summaryStop processing tokens filtered.
    defaultfalse
    nameStop Pipeline Process On Filtered
    typeboolean


Saga_config_stagecode
boundaryFlagstext block split
languagejs
"boundaryFlags": [],
"debug": false,
"tagText": false,
"tagName": "filtered",
"filterMin": false,
"minChars": 0,
"atLeastOneFlag": [],
"confidenceAdjustment": 1,
"requiredFlags": [],
"haltProcessing": true,
"maxChars": 100,
"filterMax": true,
"skipFlags": []

Example Output

Filters by a minimum length of 10 (with option set to 10 instead of 100 and replacing token checked).

For example, the token:  "ThisTokenIsLong" will produce the following graph:

saga_graph
Code Block
languagetext
V-------[ThisTokenIsLong]-------V
^---------[{filtered}]----------^

Output Flags

Lex-Item Flags:

  • FILTERED - All tokens produced are tagged as FILTERED.

Vertex Flags:

Info

No vertices are created in this stage