Versions Compared

Key

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

Connects directly to the Python Bridgeto send text or sections of the interpretation graph to be processed by ML algorithms in Python


Operates On:  Lexical Items with TOKEN and TEXT_BLOCK.

Saga_is_recognizer

Tip

The difference between this and the Python Model Stage is that this stage does requires to be associated to a tag

Settings

  • Parameter
    summaryExecute after these tags.
    defaultfalse
    nameDependency Tags
    typeboolean
  • Parameter
    summaryTags (flagged as SEMANTIC_TAG) are normalized.
    defaultfalse
    namenormalizeTags
    typeboolean
    • Whenever a tag has field (metadata) named "display" it value is used to normalize the tag, if the tag does not have "display" value then the name of tag is used, e.g. {costumer} = costumer.
  • Parameter
    summaryIncludes up to two fields in the metadata of the new tag, the values are "before" and "after".
    defaultfalse
    nameincludeContext
    typeboolean
    • The "before" value includes previous blocks (or lines) from the current text being process, using the "Boundary Flags" from the general settings to delimit the blocks, existing in the current graph, up to 2 blocks if possible. The "after" field include up to two blocks after the processed text.
  • Parameter
    summaryList of flags used to skip blocks (or lines) that should not be process by the stage.
    nameskipVertexFlags
    • The flagged vertex marks the start of the block and the end is set by the "Boundary Flags" value in the settings.


Include Page
Generic Configuration Parameters
Generic Configuration Parameters

Configuration Parameters

  • Parameter
    summaryModel name registered in the python bridge
    namemodelName
    requiredtrue
  • Parameter
    summaryModel version registered in the python wrapper to query
    defaultlatest
    namemodelVersion
  • Parameter
    summaryModel method to call for the model
    namemodelMethod
    requiredtrue
  • Parameter
    summaryPython server communication hostname
    defaultlocalhost
    namehostname
  • Parameter
    summaryPython server communication port
    default5000
    nameport
  • Parameter
    summaryPercentage of similarity to be accepted by the recognizer. A higher threshold would mean closer results but less similarities found, a lower threshold would find more similarities but less closer results.
    default0.6
    nameMatch Threshold
    typedouble
    requiredtrue


Code Block
boundaryFlagstext block split
languagejs
"dependencyTags": [],
"includeContext": false,
"modelName": "lsi",
"modelVersion": "1",
"modelMethod": "predict",
"normalizeTags": false,
"threshold": 0.6,
"hostname": "localhost",
"port": 5000

Example Output

Code Block
languagetext
V----[THOMAS B. SEEKER]-----V-------[1234 Northern Star Circle]-------V-------[Baltimore, MD 12345]--------V
^---[THOMAS B]---V-[SEEKER]-^-[1234]-V-[Northern]-V-[Star]-V-[Circle]-^---[Baltimore,]----V-[MD]-V-[12345]-^
^-[THOMAS]-V-[B]-^                   ^-[northern]-^-[star]-^-[circle]-^-[Baltimore]-V-[,]-^-[md]-^         ^
^-[thomas]-^-[b]-^-[SEEKER]-^-----------------[{lsi}]-----------------^---[baltimore,]----^                ^
^----[{lsi}]-----^-[seeker]-^                                         ^-[baltimore]-^                      ^
                 ^-[{lsi}]--^                                         ^--------------[{lsi}]---------------^

Output Flags

Lex-Item Flags:

  • WEIGHT_VECTOR - Identifies the tag as a weight vector representation of a sentence
  • ML_PREDICT- Result from a machine learning algorithm for prediction
  • ML_CLASSIFY- Result from a machine learning algorithm for classification
  • ML_REGRESS- Result from a machine learning algorithm for regression
  • SEMANTIC_TAG - Identifies all lexical items that are semantic tags.