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 | ||||||||
---|---|---|---|---|---|---|---|---|
|
Code Block | ||
---|---|---|
| ||
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": [] |
Code Block | ||||
---|---|---|---|---|
| ||||
V---- | ||||
Saga_graph | ||||
V--------------[abraham lincoln likes macaroni and cheese]---[Any analytics available for Internal Sites? Why are dogs always hungry?]---------------------V ^--[abraham]--V--[lincoln]--V--[likes]Any analytics available for Internal Sites? ]---V--[macaroni]--V--[and]--V--[cheese]--^ ^---{place}---^[Why are dogs ^always hungry?]-----{food}----^ ^-[Any]--{food}---^ ^----------{person}---------^ ^V-[analytics]-V-[available]-V-[for]-V-[Internal]-V-[Sites?]-^-[Why]-V-[are]-V-[dogs]-V-[always]-V-[hungry?]-^ ^----------------------[{foodinternalSiteIntent}]-----------------------^ |
Info |
---|
No vertices are created in this stage |