UNPKG

tpmkms

Version:

Reusable libraries for Entodicton, a natural language to json converter

1,938 lines 163 kB
[ { "associations": [ [ [ "atmosphere", 0 ], [ "convertToUnits", 0 ], [ "integer", 0 ], [ "is", 0 ], [ "pascal", 0 ], [ "what", 0 ] ], [ [ "atmosphere", 0 ], [ "convertToUnits", 0 ], [ "is", 0 ], [ "pascal", 0 ], [ "what", 0 ] ], [ [ "convertToUnits", 0 ], [ "is", 0 ], [ "pascal", 0 ] ], [ [ "convertToUnits", 0 ], [ "is", 0 ], [ "pascal", 0 ], [ "what", 0 ] ] ], "config": { }, "contexts": [ { "context_id": 2, "context_index": 1, "dead": true, "evalue": { "default": true, "focusable": [ "two", "one" ], "marker": "is", "one": { "dead": true, "default": true, "from": { "amount": { "dead": true, "instance": true, "level": 1, "marker": "integer", "range": { "end": 9, "start": 9 }, "text": "2", "types": [ "integer" ], "value": 2, "word": "2" }, "dead": true, "level": 1, "marker": "quantity", "range": { "end": 21, "start": 9 }, "text": "2 atmospheres", "types": [ "quantity" ], "unit": { "dead": true, "dimension": "pressure", "level": 0, "marker": "atmosphere", "number": "many", "range": { "end": 21, "start": 11 }, "text": "atmospheres", "types": [ "atmosphere" ], "value": "atmosphere", "word": "atmospheres" } }, "level": 1, "marker": "convertToUnits", "range": { "end": 32, "start": 9 }, "text": "2 atmospheres in pascals", "to": { "dead": true, "dimension": "pressure", "level": 0, "marker": "pascal", "number": "many", "range": { "end": 32, "start": 26 }, "text": "pascals", "types": [ "pascal" ], "value": "pascal", "word": "pascals" }, "types": [ "convertToUnits" ], "word": "in" }, "two": { "dead": true, "default": true, "evalue": { "amount": { "evalue": { "dead": true, "evalue": 202650, "instance": true, "interpolate": [ { "property": "x" }, { "property": "operator" }, { "property": "y" } ], "isModule": true, "isProcess": true, "isResponse": true, "level": 1, "marker": "timesExpression", "number": "one", "operator": { "level": 0, "marker": "timesOperator", "range": { "end": 22, "start": 22 }, "text": "*", "value": "timesOperator", "word": "*" }, "range": { "end": 29, "start": 10 }, "text": "atmospheres * 101325", "touchedBy": [ "pressure#call4", "pressure#call3" ], "types": [ "number", "timesExpression" ], "value": null, "word": "*", "x": { "dead": true, "dimension": "pressure", "level": 0, "marker": "atmosphere", "number": "many", "range": { "end": 20, "start": 10 }, "text": "atmospheres", "types": [ "atmosphere" ], "value": "atmosphere", "word": "atmospheres" }, "y": { "dead": true, "instance": true, "level": 1, "marker": "integer", "range": { "end": 29, "start": 24 }, "text": "101325", "types": [ "integer" ], "value": 101325, "word": "101325" } } }, "level": 1, "marker": "quantity", "paraphrase": true, "unit": { "dead": true, "dimension": "pressure", "level": 0, "marker": "pascal", "number": "many", "range": { "end": 32, "start": 26 }, "text": "pascals", "types": [ "pascal" ], "value": "pascal", "word": "pascals" } }, "focus": true, "from": { "amount": { "dead": true, "instance": true, "level": 1, "marker": "integer", "range": { "end": 9, "start": 9 }, "text": "2", "types": [ "integer" ], "value": 2, "word": "2" }, "dead": true, "level": 1, "marker": "quantity", "range": { "end": 21, "start": 9 }, "text": "2 atmospheres", "types": [ "quantity" ], "unit": { "dead": true, "dimension": "pressure", "level": 0, "marker": "atmosphere", "number": "many", "range": { "end": 21, "start": 11 }, "text": "atmospheres", "types": [ "atmosphere" ], "value": "atmosphere", "word": "atmospheres" } }, "instance": true, "isModule": true, "isProcess": true, "level": 1, "marker": "convertToUnits", "range": { "end": 32, "start": 9 }, "text": "2 atmospheres in pascals", "to": { "dead": true, "dimension": "pressure", "level": 0, "marker": "pascal", "number": "many", "range": { "end": 32, "start": 26 }, "text": "pascals", "types": [ "pascal" ], "value": "pascal", "word": "pascals" }, "touchedBy": [ "pressure#call3", "pressure#call2" ], "types": [ "convertToUnits" ], "word": "in" }, "word": "is" }, "isResponse": true, "level": 2, "marker": "is", "number": "many", "one": { "dead": true, "default": true, "determined": true, "level": 1, "marker": "what", "number": "many", "query": [ "what" ], "range": { "end": 3, "start": 0 }, "text": "what", "types": [ "what" ], "value": "what", "word": "what" }, "query": [ "what" ], "range": { "end": 32, "start": 0 }, "text": "what are 2 atmospheres in pascals", "topLevel": true, "touchedBy": [ "pressure#call2" ], "two": { "dead": true, "default": true, "from": { "amount": { "dead": true, "instance": true, "level": 1, "marker": "integer", "range": { "end": 9, "start": 9 }, "text": "2", "types": [ "integer" ], "value": 2, "word": "2" }, "dead": true, "level": 1, "marker": "quantity", "range": { "end": 21, "start": 9 }, "text": "2 atmospheres", "types": [ "quantity" ], "unit": { "dead": true, "dimension": "pressure", "level": 0, "marker": "atmosphere", "number": "many", "range": { "end": 21, "start": 11 }, "text": "atmospheres", "types": [ "atmosphere" ], "value": "atmosphere", "word": "atmospheres" } }, "level": 1, "marker": "convertToUnits", "range": { "end": 32, "start": 9 }, "text": "2 atmospheres in pascals", "to": { "dead": true, "dimension": "pressure", "level": 0, "marker": "pascal", "number": "many", "range": { "end": 32, "start": 26 }, "text": "pascals", "types": [ "pascal" ], "value": "pascal", "word": "pascals" }, "types": [ "convertToUnits" ], "word": "in" }, "word": "are" } ], "generatedParenthesized": [ "(((((2) (atmospheres)) in (pascals)) is ((((202650)) (pascals)))))" ], "metadata": { "opChoices": [ { "counter": 1, "op": [ "integer", 0 ], "ops": [ [ "amountOfCoordinate", 0 ], [ "atmosphere", 0 ], [ "convertToUnits", 0 ], [ "integer", 0 ], [ "is", 0 ], [ "pascal", 0 ], [ "what", 0 ] ] }, { "counter": 2, "op": [ "atmosphere", 0 ], "ops": [ [ "amountOfCoordinate", 0 ], [ "atmosphere", 0 ], [ "convertToUnits", 0 ], [ "is", 0 ], [ "pascal", 0 ], [ "what", 0 ] ] }, { "counter": 3, "op": [ "amountOfCoordinate", 0 ], "ops": [ [ "amountOfCoordinate", 0 ], [ "convertToUnits", 0 ], [ "is", 0 ], [ "pascal", 0 ], [ "what", 0 ] ] }, { "counter": 4, "op": [ "pascal", 0 ], "ops": [ [ "convertToUnits", 0 ], [ "is", 0 ], [ "pascal", 0 ], [ "what", 0 ] ] }, { "counter": 5, "op": [ "what", 0 ], "ops": [ [ "convertToUnits", 0 ], [ "is", 0 ], [ "what", 0 ] ] }, { "counter": 6, "op": [ "convertToUnits", 0 ], "ops": [ [ "convertToUnits", 0 ], [ "is", 0 ] ] }, { "counter": 7, "op": [ "is", 0 ], "ops": [ [ "is", 0 ] ] }, { "counter": 8, "op": [ "is", 1 ], "ops": [ [ "is", 1 ] ] } ] }, "objects": { "associations": [ ], "nameToUUID": { "articles": "articles2", "asking": "asking2", "comparable": "comparable2", "concept": "concept2", "conjunction": "conjunction2", "countable": "countable2", "dialogues": "dialogues2", "dimension": "dimension2", "evaluate": "evaluate2", "formulas": "formulas2", "gdefaults": "gdefaults2", "hierarchy": "hierarchy2", "math": "math2", "meta": "meta2", "negation": "negation2", "numbers": "numbers2", "pos": "pos2", "pressure": "pressure1", "properties": "properties2", "punctuation": "punctuation2", "sdefaults": "sdefaults2", "stm": "stm2", "testing": "testing2", "tokenize": "tokenize2", "words": "words2" }, "namespaced": { "articles2": { "km": "articles2" }, "asking2": { "km": "asking2" }, "comparable2": { "km": "comparable2" }, "concept2": { "defaultTypesForHierarchy": { }, "km": "concept2", "valueToWords": [ ] }, "conjunction2": { "km": "conjunction2" }, "countable2": { "km": "countable2" }, "dialogues2": { "idSuffix": "", "km": "dialogues2", "mentioned": [ ], "variables": { } }, "dimension2": { "km": "dimension2" }, "evaluate2": { "km": "evaluate2" }, "formulas2": { "formulas": { "atmosphere": [ { "equality": { "context_id": null, "context_index": 1, "dead": true, "left": { "dead": true, "dimension": "pressure", "level": 0, "marker": "atmosphere", "number": "many", "range": { "end": 10, "start": 0 }, "text": "atmospheres", "types": [ "atmosphere" ], "value": "atmosphere", "word": "atmospheres" }, "level": 1, "marker": "equals", "range": { "end": 29, "start": 0 }, "right": { "dead": true, "evaluate": true, "interpolate": [ { "property": "x" }, { "property": "operator" }, { "property": "y" } ], "isResponse": true, "level": 1, "marker": "divideByExpression", "number": "one", "operator": { "level": 0, "marker": "divideByOperator", "range": { "end": 22, "start": 22 }, "text": "/", "value": "divideByOperator", "word": "/" }, "range": { "end": 29, "start": 14 }, "text": "pascals / 101325", "types": [ "divideByExpression", "number" ], "value": null, "word": "/", "x": { "dead": true, "dimension": "pressure", "level": 0, "marker": "pascal", "number": "many", "range": { "end": 20, "start": 14 }, "text": "pascals", "types": [ "pascal" ], "value": "pascal", "word": "pascals" }, "y": { "dead": true, "instance": true, "level": 1, "marker": "integer", "range": { "end": 29, "start": 24 }, "text": "101325", "types": [ "integer" ], "value": 101325, "word": "101325" } }, "text": "atmospheres = pascals / 101325", "topLevel": true, "touchedBy": [ "pressure#call2", "instance3#pressure#call2" ], "value": "equals", "word": "=" }, "formula": { "dead": true, "evaluate": true, "interpolate": [ { "property": "x" }, { "property": "operator" }, { "property": "y" } ], "isResponse": true, "level": 1, "marker": "divideByExpression", "number": "one", "operator": { "level": 0, "marker": "divideByOperator", "range": { "end": 22, "start": 22 }, "text": "/", "value": "divideByOperator", "word": "/" }, "range": { "end": 29, "start": 14 }, "text": "pascals / 101325", "types": [ "divideByExpression", "number" ], "value": null, "word": "/", "x": { "dead": true, "dimension": "pressure", "level": 0, "marker": "pascal", "number": "many", "range": { "end": 20, "start": 14 }, "text": "pascals", "types": [ "pascal" ], "value": "pascal", "word": "pascals" }, "y": { "dead": true, "instance": true, "level": 1, "marker": "integer", "range": { "end": 29, "start": 24 }, "text": "101325", "types": [ "integer" ], "value": 101325, "word": "101325" } }, "name": { "dead": true, "dimension": "pressure", "level": 0, "marker": "atmosphere", "number": "many", "range": { "end": 10, "start": 0 }, "text": "atmospheres", "types": [ "atmosphere" ], "value": "atmosphere", "word": "atmospheres" } } ], "pascal": [ { "equality": { "context_id": null, "context_index": 1, "dead": true, "left": { "dead": true, "dimension": "pressure", "level": 0, "marker": "pascal", "number": "many", "range": { "end": 6, "start": 0 }, "text": "pascals", "types": [ "pascal" ], "value": "pascal", "word": "pascals" }, "level": 1, "marker": "equals", "range": { "end": 29, "start": 0 }, "right": { "dead": true, "evaluate": true, "interpolate": [ { "property": "x" }, { "property": "operator" }, { "property": "y" } ], "isResponse": true, "level": 1, "marker": "timesExpression", "number": "one", "operator": { "level": 0, "marker": "timesOperator", "range": { "end": 22, "start": 22 }, "text": "*", "value": "timesOperator", "word": "*" }, "range": { "end": 29, "start": 10 }, "text": "atmospheres * 101325", "types": [ "number", "timesExpression" ], "value": null, "word": "*", "x": { "dead": true, "dimension": "pressure", "level": 0, "marker": "atmosphere", "number": "many", "range": { "end": 20, "start": 10 }, "text": "atmospheres", "types": [ "atmosphere" ], "value": "atmosphere", "word": "atmospheres" }, "y": { "dead": true, "instance": true, "level": 1, "marker": "integer", "range": { "end": 29, "start": 24 }, "text": "101325", "types": [ "integer" ], "value": 101325, "word": "101325" } }, "text": "pascals = atmospheres * 101325", "topLevel": true, "touchedBy": [ "pressure#call2", "instance2#pressure#call2" ], "value": "equals", "word": "=" }, "formula": { "dead": true, "evaluate": true, "interpolate": [ { "property": "x" }, { "property": "operator" }, { "property": "y" } ], "isResponse": true, "level": 1, "marker": "timesExpression", "number": "one", "operator": { "level": 0, "marker": "timesOperator", "range": { "end": 22, "start": 22 }, "text": "*", "value": "timesOperator", "word": "*" }, "range": { "end": 29, "start": 10 }, "text": "atmospheres * 101325", "types": [ "number", "timesExpression" ], "value": null, "word": "*", "x": { "dead": true, "dimension": "pressure", "level": 0, "marker": "atmosphere", "number": "many", "range": { "end": 20, "start": 10 }, "text": "atmospheres", "types": [ "atmosphere" ], "value": "atmosphere", "word": "atmospheres" }, "y": { "dead": true, "instance": true, "level": 1, "marker": "integer", "range": { "end": 29, "start": 24 }, "text": "101325", "types": [ "integer" ], "value": 101325, "word": "101325" } }, "name": { "dead": true, "dimension": "pressure", "level": 0, "marker": "pascal", "number": "many", "range": { "end": 6, "start": 0 }, "text": "pascals", "types": [ "pascal" ], "value": "pascal", "word": "pascals" } } ] }, "km": "formulas2" }, "gdefaults2": { "km": "gdefaults2" }, "hierarchy2": { "km": "hierarchy2" }, "math2": { "km": "math2" }, "meta2": { "km": "meta2" }, "negation2": { "km": "negation2" }, "numbers2": { "km": "numbers2" }, "pos2": { "km": "pos2" }, "pressure1": { "km": "pressure1" }, "properties2": { "children": { "adjective": [ "stm_previous", "stm_current", "stm_before" ], "article": [ "a", "the", "each", "every" ], "canBeDoQuestion": [ "have" ], "canBeQuestion": [ "have", "is" ], "concept": [ "formula", "dimension", "measurement_unit" ], "dimension": [ "pressure" ], "hierarchyAble": [ "unknown" ], "ifAble": [ "orAble" ], "listable": [ "object", "queryable" ], "measurement_system": [ "metric_system", "imperial_system" ], "object": [ "what", "whose" ], "preposition": [ "between", "propertyOf", "to" ], "pronoun": [ "it", "this" ], "punctuation": [ "questionMark" ], "queryable": [ "xfx", "hierarchyAble", "readonly", "property", "object", "concept", "doubleQuote", "theAble", "it", "what", "whatAble", "negatable", "this", "reason", "distributable", "thisitthat" ], "sort_ordering": [ "ascending", "descending" ], "theAble": [ "property", "object", "concept", "listable", "reason", "memorable", "noun" ], "thisitthat": [ "it", "this", "that" ], "toAble": [ "it" ], "unit": [ "imperial_unit", "metric_unit" ], "unit_pressure": [ "pascal", "atmosphere" ], "verb": [ "modifies", "is", "isQuery", "remember" ] }, "concepts": [ "properties", "unknown", "hierarchyAble", "what", "object", "xfx", "queryable", "between", "preposition", "readonly", "have", "canBeDoQuestion", "canBeQuestion", "property", "theAble", "listable", "propertyOf", "whose", "concept", "modifies", "verb", "doubleQuote", "it", "pronoun", "this", "questionMark", "punctuation", "a", "article", "the", "whatAble", "negatable", "is", "toAble", "to", "isQuery", "reason", "memorable", "remember", "stm_previous", "adjective", "stm_current", "stm_before", "orAble", "ifAble", "each", "every", "distributable", "noun", "thisitthat", "that", "ascending", "sort_ordering", "descending", "formula", "dimension", "measurement_unit", "metric_system", "measurement_system", "imperial_system", "imperial_unit", "unit", "metric_unit", "pressure", "pascal", "unit_pressure", "atmosphere" ], "km": "properties2", "parents": { "a": [ "article" ], "ascending": [ "sort_ordering" ], "atmosphere": [ "unit_pressure" ], "between": [ "preposition" ], "concept": [ "theAble", "queryable" ], "descending": [ "sort_ordering" ], "dimension": [ "concept" ], "distributable": [ "queryable" ], "doubleQuote": [ "queryable" ], "each": [ "article" ], "every": [ "article" ], "formula": [ "concept" ], "have": [ "canBeDoQuestion", "canBeQuestion" ], "hierarchyAble": [ "queryable" ], "imperial_system": [ "measurement_system" ], "imperial_unit": [ "unit" ], "is": [ "canBeQuestion", "verb" ], "isQuery": [ "verb" ], "it": [ "pronoun", "queryable", "toAble", "thisitthat" ], "listable": [ "theAble" ], "measurement_unit": [ "concept" ], "memorable": [ "theAble" ], "metric_system": [ "measurement_system" ], "metric_unit": [ "unit" ], "modifies": [ "verb" ], "negatable": [ "queryable" ], "noun": [ "theAble" ], "object": [ "queryable", "theAble", "listable" ], "orAble": [ "ifAble" ], "pascal": [ "unit_pressure" ], "pressure": [ "dimension" ], "property": [ "queryable", "theAble" ], "propertyOf": [ "preposition" ], "queryable": [ "listable" ], "questionMark": [ "punctuation" ], "readonly": [ "queryable" ], "reason": [ "theAble", "queryable" ], "remember": [ "verb" ], "stm_before": [ "adjective" ], "stm_current": [ "adjective" ], "stm_previous": [ "adjective" ], "that": [ "thisitthat" ], "the": [ "article" ], "theAble": [ "queryable" ], "this": [ "pronoun", "queryable", "thisitthat" ], "thisitthat": [ "queryable" ], "to": [ "preposition" ], "unknown": [ "hierarchyAble" ], "what": [ "object", "queryable" ], "whatAble": [ "queryable" ], "whose": [ "object" ], "xfx": [ "queryable" ] }, "properties": { "handlers": { }, "initHandlers": [ ], "root": { "a": { }, "adjective": { }, "article": { }, "ascending": { }, "atmosphere": { }, "between": { }, "canBeDoQuestion": { }, "canBeQuestion": { }, "concept": { }, "descending": { }, "dimension": { }, "distributable": { }, "doubleQuote": { }, "each": { }, "every": { }, "formula": { }, "have": { }, "hierarchyAble": { }, "ifAble": { }, "imperial_system": { }, "imperial_unit": { }, "is": { }, "isQuery": { }, "it": { }, "listable": { }, "measurement_system": { }, "measurement_unit": { }, "memorable": { }, "metric_system": { }, "metric_unit": { }, "modifies": { }, "negatable": { }, "noun": { }, "object": { }, "orAble": { }, "pascal": { }, "preposition": { }, "pressure": { }, "pronoun": { }, "property": { }, "propertyOf": { }, "punctuation": { }, "queryable": { }, "questionMark": { }, "readonly": { }, "reason": { }, "remember": { }, "sort_ordering": { }, "stm_before": { }, "stm_current": { }, "stm_previous": { }, "that": { }, "the": { }, "theAble": { }, "this": { }, "thisitthat": { }, "to": { }, "toAble": { }, "unit": { }, "unit_pressure": { }, "unknown": { }, "verb": { }, "what": { }, "whatAble": { }, "whose": { }, "xfx": { } } }, "property": { }, "relations": [ ], "valueToWords": { } }, "punctuation2": { "km": "punctuation2" }, "sdefaults2": { "km": "sdefaults2" }, "stm2": { "km": "stm2", "mentioned": [ { "fromSTM": true, "isVariable": true, "marker": "atmosphere", "pullFromContext": false, "stm": { "id": 1 }, "value": { "dead": true, "instance": true, "level": 1, "marker": "integer", "range": { "end": 9, "start": 9 }, "text": "2", "types": [ "integer" ], "value": 2, "word": "2" } } ], "variables": { } }, "testing2": { "km": "testing2" }, "tokenize2": { "km": "tokenize2" }, "words2": { "km": "words2", "words": [ ] } }, "processed": [ { "context": { "context_id": 2, "context_index": 1, "dead": true, "evalue": { "default": true, "focusable": [ "two", "one" ], "marker": "is", "one": { "dead": true, "default": true, "from": { "amount": { "dead": true, "instance": true, "level": 1, "marker": "integer", "range": { "end": 9, "start": 9 }, "text": "2", "types": [ "integer" ], "value": 2, "word": "2" }, "dead": true, "level": 1, "marker": "quantity", "range": { "end": 21, "start": 9 }, "text": "2 atmospheres", "types": [ "quantity" ], "unit": { "dead": true, "dimension": "pressure", "level": 0, "marker": "atmosphere", "number": "many", "range": { "end": 21, "start": 11 }, "text": "atmospheres", "types": [ "atmosphere" ], "value": "atmosphere", "word": "atmospheres" } }, "level": 1, "marker": "convertToUnits", "range": { "end": 32, "start": 9 }, "text": "2 atmospheres in pascals", "to": { "dead": true, "dimension": "pressure", "level": 0, "marker": "pascal", "number": "many", "range": { "end": 32, "start": 26 }, "text": "pascals", "types": [ "pascal" ], "value": "pascal", "word": "pascals" }, "types": [ "convertToUnits" ], "word": "in" }, "two": { "dead": true, "default": true, "evalue": { "amount": { "evalue": { "dead": true, "evalue": 202650, "instance": true, "interpolate": [ { "property": "x" }, { "property": "operator" }, { "property": "y" } ], "isModule": true, "isProcess": true, "isResponse": true, "level": 1, "marker": "timesExpression", "number": "one", "operator": { "level": 0, "marker": "timesOperator", "range": { "end": 22, "start": 22 }, "text": "*", "value": "timesOperator", "word": "*" }, "range": { "end": 29, "start": 10 }, "text": "atmospheres * 101325", "touchedBy": [ "pressure#call4", "pressure#call3" ], "types": [ "number", "timesExpression" ], "value": null, "word": "*", "x": { "dead": true, "dimension": "pressure", "level": 0, "marker": "atmosphere", "number": "many", "range": { "end": 20, "start": 10 }, "text": "atmospheres", "types": [ "atmosphere" ], "value": "atmosphere", "word": "atmospheres" }, "y": { "dead": true, "instance": true, "level": 1, "marker": "integer", "range": { "end": 29, "start": 24 }, "text": "101325", "types": [ "integer" ], "value": 101325, "word": "101325" } } }, "level": 1, "marker": "quantity", "paraphrase": true, "unit": { "dead": true, "dimension": "pressure", "level": 0, "marker": "pascal", "number": "many", "range": { "end": 32, "start": 26 }, "text": "pascals", "types": [ "pascal" ], "value": "pascal", "word": "pascals" } }, "focus"