Excerpt |
---|
The Intent stage does a semantic comparison of a sentence against possible intents (using TensorFlow or a Neural Network on the Python Bridge), if the confidence value is in the threshold, it will create a tag holding the intent. This recognizer uses a frozen Universal Sentence Encoder TensorFlow model to encode (using sentence embedding vectors) a list of intents. Then tags sentences that match an intent given a specified threshold of accuracy with the intent from the list of possible intents. |
Operates On: Lexical Items with TOKEN and possibly other flags as specified below.
Saga_is_recognizer
Library: saga-intent-stage
Include Page | ||||
---|---|---|---|---|
|
Parameter | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Parameter | ||||||
---|---|---|---|---|---|---|
|
Parameter | ||||||||
---|---|---|---|---|---|---|---|---|
|
Parameter | ||||||||
---|---|---|---|---|---|---|---|---|
|
Parameter | ||||||||
---|---|---|---|---|---|---|---|---|
|
Parameter | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Parameter | ||||||||
---|---|---|---|---|---|---|---|---|
|
Parameter | ||||||||
---|---|---|---|---|---|---|---|---|
|
Parameter | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Parameter | ||||||||
---|---|---|---|---|---|---|---|---|
|
Parameter | ||||||||
---|---|---|---|---|---|---|---|---|
|
Saga_config_stage | ||
---|---|---|
| ||
"atLeastOneFlag": [] "boundaryFlags": ["SENTENCE_SPLIT", "TEXT_BLOCK_SPLIT"] "confidenceAdjustment": 1 "debug": false "dontProcessFlags": [] "hostname": "localhost" "intents": "saga-provider:saga_intent" "modelName": "bert-base-uncased" "modelPath": "tf-models/use/" "normalizeTags": [] "port": 5000 "removeTags": [] "requiredFlags": [] "skipFlags": [] "threshold": 0.6 "useTensorFlow": false "version": "1" "_encrypt": [] |
Saga_graph |
---|
V---------------------[Any analytics available for Internal Sites? Why are dogs always hungry?]---------------------V ^----------[Any analytics available for Internal Sites? ]-----------V---------[Why are dogs always hungry?]---------^ ^-[Any]-V-[analytics]-V-[available]-V-[for]-V-[Internal]-V-[Sites?]-^-[Why]-V-[are]-V-[dogs]-V-[always]-V-[hungry?]-^ ^----------------------[{internalSiteIntent}]-----------------------^ |
Info |
---|
No vertices are created in this stage |