...
Operates On: Lexical Items with TOKEN or SEMANTIC_TAG and
...
other possible flags as specified below, but not on TEXT_BLOCK.
Saga_is_recognizer
Include Page | ||||
---|---|---|---|---|
|
...
Parameter | ||
---|---|---|
|
...
|
...
language | js |
---|---|
theme | Eclipse |
title | Example Configuration |
...
|
Info | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
In version 1.2.2 this parameter was added:
|
Saga_config_stage | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
"patterns":" |
...
saga_provider:fragmented_patterns" |
...
,
"maxRepeats": 5 |
Description
...
Saga_graph |
---|
V--------------[abraham lincoln likes macaroni and cheese]--------------------V
^--[abraham]--V--[lincoln]--V--[likes]--V--[macaroni]--V--[and]--V--[cheese]--^
|
...
^---{place}---^ ^----{food}----^ ^---{food}---^ ^----------{person}---------^ ^-----------------{food}--------------^ |
...
...
...
...
Info |
---|
No vertices are created in this stage |
The resource data
...
is a database of fragmented patterns, and the resulting semantic
...
tags they produce.
The only required file
...
is the entity dictionary. It is a series of JSON records, typically indexed by entity ID.
...
...
...
Anchor |
---|
...
|
...
|
...
Saga_json | ||
---|---|---|
|
...
|
...
" |
...
tag": " |
...
{city}", |
...
" |
...
pattern": |
...
" |
...
(" |
...
how many" |
...
|"how much") {ingredient} ",
"confAdjust": 0.95
. . . additional fields as needed go here . . . |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
"_id" : "KGAAJGsBemSwA0nZTLXA", "tag":["recipe"], "pattern": "{number} {ingredient}", "options": { |
...
"minTokens": 3, |
...
"maxTokens": |
...
2, |
...
|
...
"combination": true
|
...
}
|
...
" |
...
confAdjust":0.95 |
...
|
...
. . . additional fields as needed go here . . . |
...
...
Note |
---|
|
...
|
...
|
...
|
...
|
...
...
Parameter | ||||||
---|---|---|---|---|---|---|
|
These will all be added to the interpretation graph with the SEMANTIC_TAG flag.
...
Tip |
---|
Tags are hierarchical representations of the same intent. For example, {city} → {administrative-area} → {geographical-area} |
...
Parameter | ||
---|---|---|
|
...
|
...
|
Parameter | |
---|---|
|
|
...
|
Parameter | ||
---|---|---|
|
...
|
...
|
Parameter | ||
---|---|---|
|
...
|
...
|
...
|
...
|
Parameter | ||
---|---|---|
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
|
Include Page | ||||
---|---|---|---|---|
|