You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

The Intent stage does a semantic comparison of a provided sentence against possible intents the recognizer already has. If the confidence value is in the threshold, it will create a tag holding the intent.


This is a plugin recognizer. Uses Intent Stage


This recognizer can be used with 2 model types:

  1. A frozen Universal Sentence Encoder TensorFlow model. This one is stored in "[saga-home]\tf-models" directory.
  2. Any of the models that create embeddings that are available in the Python Bridge.


Both the intents stored in the recognizer as the query entered by the user are encoded (using sentence embedding vectors) and then compared.  The intent recognizer will chose the intent that best matches the query.

Configuration

  • Match Threshold ( type=double | default=0.6 | required ) - Matching intents need to have a higher confidence value than this threshold to be selected
  • Normalize Tags ( type=string array | optional ) - Text will be normalized using these tags. Matched text will be replaced by the 'display' field (in case of the entity recognizer). If not then the matching text is used.
  • Remove Tags ( type=string array | optional ) - Tags matching text will be removed from the text before evaluation



Using TensorFlow:


Using Python Bridge:



  • Host Name ( type=string | default=localhost | required ) - Host name where the Python Bridge runs
  • Port ( type=integer | default=5000 | required ) - Python Bridge port
  • Model ( type=string | required ) - Python Bridge model to use
  • Version ( type=string | required ) - Version of the Python Bridge Model to use

Adding an Intent

Click on the  button to open the "Add new " dialog


  • Write intent here ( type=string | default=None | optional ) - Intent to add to the list of possible intents.
  • Confidence Adjustment ( type=double | default=1 | optional ) - Confidence adjustment for this very intent.


After adding the intent, it is listed in the table:



Recalculate Vectors

Click on the  button to refresh and recalculate all vectors.

General Settings

The general settings can be accessed by clicking on

More settings could be displayed in the same dialog, it varies per recognizer.


  • Enable - Enable the processor to be use in pipelines.
  • Base Pipeline - Indicates the last stage, from a pipeline, needed by the recognizer.
  • Skip Flags ( optional ) - Lexical items flags to be ignored by this processor.
  • Boundary Flags  ( optional ) - List of vertex flags that indicate the beginning and end of a text block.
  • Required Flags ( optional ) - Lexical items flags required by every token to be processed.
  • At Least One Flag ( optional ) - Lexical items flags needed by every token to be processed.
  • Don't Process Flags ( optional ) - List of lexical items flags that are not processed. The difference with "Skip Flags" is that this will drop the path in the Saga graph, skip just skips the token and continues in the same path.
  • Confidence Adjustment - Adjustment factor to apply to the confidence value of 0.0 to 2.0 from (Applies for every match).
    • 0.0 to < 1.0  decreases confidence value
    • 1.0 confidence value remains the same
    • > 1.0 to  2.0 increases confidence value
  • Debug - Enable debug logging.

  • No labels