Versions Compared

Key

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

Connects directly to the Python Bridge, to send tokens without SEMANTIC_TAGs to be processed  to send text or sections of the interpretation graph to be process by ML algorithms in Python


Operates On:  Lexical Items with TOKEN and not with SEMANTICTEXT_TAGBLOCK.

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
    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


Saga_config_stage
boundaryFlagstext block split
"modelName": "lsi"
"modelVersion": "1"
"modelMethod": "predict"
"hostname": "localhost",
"port": 5000,

Example Output

Saga_graph
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

Info

No vertices are created in this stage