...
Operates On: Lexical Items with TOKEN or SEMANTIC_TAG and
...
other possible flags as specified below.
Include Page | ||||
---|---|---|---|---|
|
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{
"type":"Fragmentation",
"patterns":"fragmented-provider:patterns"
} |
Example Output
Code Block | ||||
---|---|---|---|---|
| ||||
V--------------[abraham lincoln likes macaroni and cheese]--------------------V
^--[abraham]--V--[lincoln]--V--[likes]--V--[macaroni]--V--[and]--V--[cheese]--^
^---{place}---^ ^----{food}----^ ^---{food}---^
^----------{person}---------^ ^-----------------{food}--------------^ |
...
...
...
...
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.
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{
"id":"Q28260",
"tags":["{city}", "{administrative-area}", "{geography}"],
"patterns":[
"Lincoln", "Lincoln, Nebraska", "Lincoln, NE"
],
"options": {
"minTokens": 3,
"maxTokens": 6,
"combination": true
}
"confidence":0.95
. . . additional fields as needed go here . . .
} |
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...