UNPKG

tpmkms

Version:

Reusable libraries for Entodicton, a natural language to json converter

673 lines 14.3 kB
[ { "associations": [ [ [ "evaluate", 0 ], [ "value1", 0 ] ] ], "config": { "words": { "hierarchy": [ { "child": " ", "parent": "space" }, { "child": "0", "parent": "digit" }, { "child": "1", "parent": "digit" }, { "child": "2", "parent": "digit" }, { "child": "3", "parent": "digit" }, { "child": "4", "parent": "digit" }, { "child": "5", "parent": "digit" }, { "child": "6", "parent": "digit" }, { "child": "7", "parent": "digit" }, { "child": "8", "parent": "digit" }, { "child": "9", "parent": "digit" }, { "child": "lower", "parent": "letter" }, { "child": "upper", "parent": "letter" }, { "child": "a", "parent": "lower" }, { "child": "b", "parent": "lower" }, { "child": "c", "parent": "lower" }, { "child": "d", "parent": "lower" }, { "child": "e", "parent": "lower" }, { "child": "f", "parent": "lower" }, { "child": "g", "parent": "lower" }, { "child": "h", "parent": "lower" }, { "child": "i", "parent": "lower" }, { "child": "j", "parent": "lower" }, { "child": "k", "parent": "lower" }, { "child": "l", "parent": "lower" }, { "child": "m", "parent": "lower" }, { "child": "n", "parent": "lower" }, { "child": "o", "parent": "lower" }, { "child": "p", "parent": "lower" }, { "child": "q", "parent": "lower" }, { "child": "r", "parent": "lower" }, { "child": "s", "parent": "lower" }, { "child": "t", "parent": "lower" }, { "child": "u", "parent": "lower" }, { "child": "v", "parent": "lower" }, { "child": "w", "parent": "lower" }, { "child": "x", "parent": "lower" }, { "child": "y", "parent": "lower" }, { "child": "z", "parent": "lower" }, { "child": "A", "parent": "upper" }, { "child": "B", "parent": "upper" }, { "child": "C", "parent": "upper" }, { "child": "D", "parent": "upper" }, { "child": "E", "parent": "upper" }, { "child": "F", "parent": "upper" }, { "child": "G", "parent": "upper" }, { "child": "H", "parent": "upper" }, { "child": "I", "parent": "upper" }, { "child": "J", "parent": "upper" }, { "child": "K", "parent": "upper" }, { "child": "L", "parent": "upper" }, { "child": "M", "parent": "upper" }, { "child": "N", "parent": "upper" }, { "child": "O", "parent": "upper" }, { "child": "P", "parent": "upper" }, { "child": "Q", "parent": "upper" }, { "child": "R", "parent": "upper" }, { "child": "S", "parent": "upper" }, { "child": "T", "parent": "upper" }, { "child": "U", "parent": "upper" }, { "child": "V", "parent": "upper" }, { "child": "W", "parent": "upper" }, { "child": "X", "parent": "upper" }, { "child": "Y", "parent": "upper" }, { "child": "Z", "parent": "upper" }, { "child": "letter", "parent": "alphanumeric" }, { "child": "digit", "parent": "alphanumeric" }, { "child": "_", "parent": "alphanumeric" }, { "child": "~", "parent": "punctuation" }, { "child": "!", "parent": "punctuation" }, { "child": "@", "parent": "punctuation" }, { "child": "#", "parent": "punctuation" }, { "child": "$", "parent": "punctuation" }, { "child": "%", "parent": "punctuation" }, { "child": "^", "parent": "punctuation" }, { "child": "&", "parent": "punctuation" }, { "child": "*", "parent": "punctuation" }, { "child": "(", "parent": "punctuation" }, { "child": ")", "parent": "punctuation" }, { "child": "+", "parent": "punctuation" }, { "child": "-", "parent": "punctuation" }, { "child": "=", "parent": "punctuation" }, { "child": "[", "parent": "punctuation" }, { "child": "]", "parent": "punctuation" }, { "child": "{", "parent": "punctuation" }, { "child": "}", "parent": "punctuation" }, { "child": "\\", "parent": "punctuation" }, { "child": "|", "parent": "punctuation" }, { "child": ";", "parent": "punctuation" }, { "child": ":", "parent": "punctuation" }, { "child": ",", "parent": "punctuation" }, { "child": "<", "parent": "punctuation" }, { "child": ">", "parent": "punctuation" }, { "child": "/", "parent": "punctuation" }, { "child": "?", "parent": "punctuation" }, { "child": "'", "parent": "punctuation" }, { "child": "\"", "parent": "punctuation" } ], "literals": { "\"": [ { "id": "doubleQuote", "initial": "{\"word\":\"\\\"\",\"depth\":\"+\"}", "word": "\"" } ], "(": [ { "id": "leftParenthesis", "initial": "{\"word\":\"(\",\"value\":\"(\",\"depth\":\"+\"}", "word": "(" } ], ")": [ { "id": "rightParenthesis", "initial": "{\"word\":\")\",\"value\":\")\",\"depth\":\"-\"}", "word": ")" } ], ",": [ { "id": "comma", "initial": "{\"word\":\",\",\"value\":\",\",\"depth\":\"+\"}", "word": "," } ], ".": [ { "id": "endOfSentence", "initial": "{ value: \"endOfSentence\"}" } ], ":": [ { "id": "colon", "initial": "{ value: \"colon\"}" } ] }, "patterns": [ { "defs": [ { "remove": true, "uuid": "tokenize2" } ], "pattern": [ { "type": "space" }, { "repeat": true } ] }, { "allow_partial_matches": false, "check_spelling": true, "defs": [ { "id": "unknown", "initial": "{ value: text, unknown: true }", "uuid": "tokenize2" } ], "is_unknown": true, "pattern": [ { "type": "alphanumeric" }, { "repeat": true } ], "scale": 0.8 } ] } }, "contexts": [ { "context_index": 1, "dead": true, "default": true, "isResponse": true, "level": 1, "marker": "evaluate", "postModifiers": [ "value" ], "range": { "end": 14, "start": 0 }, "response": "value1 after evaluation", "text": "evaluate value1", "topLevel": true, "touchedBy": [ "evaluate#call2" ], "value": { "default": true, "level": 0, "marker": "value1", "range": { "end": 14, "start": 9 }, "text": "value1", "value": "value1", "word": "value1" }, "word": "evaluate" } ], "generatedParenthesized": [ "(value1 after evaluation)" ], "metadata": { "opChoices": [ { "counter": 1, "op": [ "evaluate", 0 ], "ops": [ [ "evaluate", 0 ], [ "value1", 0 ] ] } ] }, "objects": { "nameToUUID": { "evaluate": "evaluate1", "gdefaults": "gdefaults2", "pos": "pos2", "punctuation": "punctuation2", "tokenize": "tokenize2" }, "namespaced": { "evaluate1": { }, "gdefaults2": { }, "pos2": { }, "punctuation2": { }, "tokenize2": { } }, "processed": [ { "context": { "context_index": 1, "dead": true, "default": true, "isResponse": true, "level": 1, "marker": "evaluate", "postModifiers": [ "value" ], "range": { "end": 14, "start": 0 }, "response": "value1 after evaluation", "text": "evaluate value1", "topLevel": true, "touchedBy": [ "evaluate#call2" ], "value": { "default": true, "level": 0, "marker": "value1", "range": { "end": 14, "start": 9 }, "text": "value1", "value": "value1", "word": "value1" }, "word": "evaluate" }, "generatedParenthesized": "(value1 after evaluation)", "paraphrases": "evaluate value1", "paraphrasesParenthesized": "((evaluate) (value1))", "responses": [ "value1 after evaluation" ] } ] }, "paraphrases": [ "evaluate value1" ], "paraphrasesParenthesized": [ "((evaluate) (value1))" ], "query": "evaluate value1", "responses": [ "value1 after evaluation" ], "summaries": [ { "length": 1, "summaries": [ { "counter": 1, "operators": [ { "marker": [ "evaluate", 0 ], "range": { "end": 7, "start": 0 } }, { "marker": [ "value1", 0 ], "range": { "end": 14, "start": 9 } } ] }, { "counter": 2, "operators": [ { "marker": [ "evaluate", 1 ], "range": { "end": 14, "start": 0 } } ] } ] } ] } ]