UNPKG

tpmkms

Version:

Reusable libraries for Entodicton, a natural language to json converter

1,943 lines (1,942 loc) 1.1 MB
[ { "associations": [ [ [ "arm", 0 ], [ "phaser", 0 ], [ "the", 0 ] ], [ [ "arm", 0 ], [ "the", 0 ] ] ], "config": { }, "contexts": [ { "context_index": 1, "dead": true, "focusable": [ "weapon" ], "level": 1, "marker": "arm", "number": "many", "range": { "end": 14, "start": 0 }, "text": "arm the phasers", "topLevel": true, "touchedBy": [ "crew#call2" ], "unflatten": [ "weapon" ], "value": "arm", "weapon": { "concept": true, "dead": true, "determiner": "the", "focusableForPhrase": true, "level": 1, "marker": "phaser", "modifiers": [ "determiner" ], "number": "many", "pullFromContext": true, "range": { "end": 14, "start": 4 }, "text": "the phasers", "types": [ "phaser" ], "value": "phaser", "wantsValue": true, "word": "phasers" }, "word": "arm" } ], "generatedParenthesized": [ "" ], "metadata": { "opChoices": [ { "counter": 1, "op": [ "phaser", 0 ], "ops": [ [ "arm", 0 ], [ "phaser", 0 ], [ "the", 0 ] ] }, { "counter": 2, "op": [ "the", 0 ], "ops": [ [ "arm", 0 ], [ "the", 0 ] ] }, { "counter": 3, "op": [ "arm", 0 ], "ops": [ [ "arm", 0 ] ] } ] }, "objects": { "nameToUUID": { "animals": "animals2", "articles": "articles2", "asking": "asking2", "avatar": "avatar2", "concept": "concept2", "conjunction": "conjunction2", "crew": "crew1", "dialogues": "dialogues2", "emotions": "emotions2", "evaluate": "evaluate2", "gdefaults": "gdefaults2", "hierarchy": "hierarchy2", "meta": "meta2", "negation": "negation2", "pos": "pos2", "properties": "properties2", "punctuation": "punctuation2", "sdefaults": "sdefaults2", "stm": "stm2", "tokenize": "tokenize2" }, "namespaced": { "animals2": { }, "articles2": { }, "asking2": { }, "avatar2": { }, "concept2": { "defaultTypesForHierarchy": { }, "valueToWords": [ ] }, "conjunction2": { }, "crew1": { }, "dialogues2": { "idSuffix": "", "mentioned": [ ], "variables": { } }, "emotions2": { }, "evaluate2": { }, "gdefaults2": { }, "hierarchy2": { }, "meta2": { }, "negation2": { }, "pos2": { }, "properties2": { "children": { "adjective": [ "stm_before" ], "animal": [ "bird", "mammal" ], "article": [ "a", "the", "each", "every" ], "bird": [ "owl", "eagle", "pidgeon", "parrot" ], "canBeDoQuestion": [ "have" ], "canBeQuestion": [ "have", "is" ], "canine": [ "dog", "wolf" ], "captain": [ "kirk" ], "crew_member": [ "kirk", "spock", "mccoy" ], "doctor": [ "spock", "mccoy" ], "eye": [ "blue", "brown" ], "feline": [ "cat" ], "hierarchyAble": [ "unknown" ], "ifAble": [ "orAble" ], "mammal": [ "human", "bat", "feline", "canine" ], "name": [ "jim", "spock", "mccoy" ], "object": [ "what", "whose" ], "preposition": [ "between", "propertyOf", "to" ], "pronoun": [ "it", "this" ], "punctuation": [ "questionMark" ], "queryable": [ "xfx", "hierarchyAble", "readonly", "property", "object", "concept", "doubleQuote", "theAble", "unknown", "it", "what", "whatAble", "negatable", "this", "reason", "distributable", "thisitthat" ], "rank": [ "captain", "second", "doctor" ], "status": [ "armed" ], "theAble": [ "property", "object", "concept", "unknown", "reason", "memorable", "noun" ], "thisitthat": [ "it", "this", "that" ], "toAble": [ "it" ], "verb": [ "modifies", "is", "remember", "evaluate" ], "weapon": [ "phaser", "torpedo" ] }, "concepts": [ "properties", "unknown", "hierarchyAble", "what", "object", "xfx", "queryable", "between", "preposition", "readonly", "have", "canBeDoQuestion", "canBeQuestion", "property", "theAble", "propertyOf", "whose", "concept", "modifies", "verb", "doubleQuote", "it", "pronoun", "this", "questionMark", "punctuation", "a", "article", "the", "whatAble", "negatable", "is", "toAble", "to", "reason", "memorable", "remember", "stm_before", "adjective", "orAble", "ifAble", "evaluate", "each", "every", "distributable", "noun", "thisitthat", "that", "bird", "animal", "mammal", "human", "bat", "feline", "canine", "owl", "eagle", "pidgeon", "parrot", "cat", "dog", "wolf", "jim", "name", "kirk", "captain", "rank", "blue", "eye", "crew_member", "second", "spock", "brown", "doctor", "mccoy", "armed", "status", "phaser", "photon_torpedo", "weapon", "torpedo" ], "parents": { "a": [ "article" ], "armed": [ "status" ], "bat": [ "mammal" ], "between": [ "preposition" ], "bird": [ "animal" ], "blue": [ "eye" ], "brown": [ "eye" ], "canine": [ "mammal" ], "captain": [ "rank" ], "cat": [ "feline" ], "concept": [ "theAble", "queryable" ], "distributable": [ "queryable" ], "doctor": [ "rank" ], "dog": [ "canine" ], "doubleQuote": [ "queryable" ], "each": [ "article" ], "eagle": [ "bird" ], "evaluate": [ "verb" ], "every": [ "article" ], "feline": [ "mammal" ], "have": [ "canBeDoQuestion", "canBeQuestion" ], "hierarchyAble": [ "queryable" ], "human": [ "mammal" ], "is": [ "canBeQuestion", "verb" ], "it": [ "pronoun", "queryable", "toAble", "thisitthat" ], "jim": [ "name" ], "kirk": [ "captain", "crew_member" ], "mammal": [ "animal" ], "mccoy": [ "name", "crew_member", "doctor" ], "memorable": [ "theAble" ], "modifies": [ "verb" ], "negatable": [ "queryable" ], "noun": [ "theAble" ], "object": [ "queryable", "theAble" ], "orAble": [ "ifAble" ], "owl": [ "bird" ], "parrot": [ "bird" ], "phaser": [ "weapon" ], "pidgeon": [ "bird" ], "property": [ "queryable", "theAble" ], "propertyOf": [ "preposition" ], "questionMark": [ "punctuation" ], "readonly": [ "queryable" ], "reason": [ "theAble", "queryable" ], "remember": [ "verb" ], "second": [ "rank" ], "spock": [ "name", "doctor", "crew_member" ], "stm_before": [ "adjective" ], "that": [ "thisitthat" ], "the": [ "article" ], "theAble": [ "queryable" ], "this": [ "pronoun", "queryable", "thisitthat" ], "thisitthat": [ "queryable" ], "to": [ "preposition" ], "torpedo": [ "weapon" ], "unknown": [ "hierarchyAble", "theAble", "queryable" ], "what": [ "object", "queryable" ], "whatAble": [ "queryable" ], "whose": [ "object" ], "wolf": [ "canine" ], "xfx": [ "queryable" ] }, "properties": { "handlers": { "kirk": { }, "mccoy": { }, "spock": { } }, "initHandlers": [ ], "root": { "a": { }, "adjective": { }, "animal": { "eye": { "has": true, "value": null }, "skin": { "has": true, "value": null } }, "armed": { }, "article": { }, "bat": { "wing": { "has": true, "value": null } }, "between": { }, "bird": { "beak": { "has": true, "value": null }, "wing": { "has": true, "value": null } }, "blue": { }, "brown": { }, "canBeDoQuestion": { }, "canBeQuestion": { }, "canine": { }, "captain": { }, "cat": { }, "concept": { }, "crew_member": { }, "distributable": { }, "doctor": { }, "dog": { }, "doubleQuote": { }, "each": { }, "eagle": { }, "evaluate": { }, "every": { }, "eye": { }, "feline": { }, "have": { }, "hierarchyAble": { }, "human": { }, "ifAble": { }, "is": { }, "it": { }, "jim": { }, "kirk": { "eye": { "has": true, "value": { "concept": true, "dead": true, "level": 1, "marker": "unknown", "range": { "end": 19, "start": 16 }, "text": "blue", "types": [ "unknown" ], "unknown": true, "value": "blue", "word": "blue" } }, "name": { "has": true, "value": { "concept": true, "dead": true, "level": 1, "marker": "unknown", "range": { "end": 17, "start": 15 }, "text": "jim", "types": [ "unknown" ], "unknown": true, "value": "jim", "word": "jim" } }, "rank": { "has": true, "value": { "concept": true, "dead": true, "level": 1, "marker": "unknown", "range": { "end": 21, "start": 15 }, "text": "captain", "types": [ "unknown" ], "unknown": true, "value": "captain", "word": "captain" } } }, "mammal": { "ear": { "has": true, "value": null }, "hair": { "has": true, "value": null }, "wing": { "has": false, "value": null } }, "mccoy": { "eye": { "has": true, "value": { "concept": true, "dead": true, "level": 1, "marker": "unknown", "range": { "end": 21, "start": 17 }, "text": "brown", "types": [ "unknown" ], "unknown": true, "value": "brown", "word": "brown" } }, "name": { "has": true, "value": { "concept": true, "dead": true, "level": 1, "marker": "unknown", "range": { "end": 20, "start": 16 }, "text": "mccoy", "types": [ "unknown" ], "unknown": true, "value": "mccoy", "word": "mccoy" } }, "rank": { "has": true, "value": { "concept": true, "dead": true, "level": 1, "marker": "doctor", "number": "one", "range": { "end": 21, "start": 16 }, "text": "doctor", "types": [ "doctor" ], "value": "doctor", "word": "doctor" } } }, "memorable": { }, "modifies": { }, "name": { }, "negatable": { }, "noun": { }, "object": { }, "orAble": { }, "owl": { }, "parrot": { }, "phaser": { "status": { "has": true, "value": { "concept": true, "dead": true, "level": 1, "marker": "unknown", "range": { "end": 53, "start": 49 }, "text": "armed", "types": [ "unknown" ], "unknown": true, "value": "armed", "word": "armed" } } }, "photon_torpedo": { "status": { "has": true, "value": { "concept": true, "dead": true, "level": 1, "marker": "unknown", "range": { "end": 42, "start": 38 }, "text": "armed", "types": [ "unknown" ], "unknown": true, "value": "armed", "word": "armed" } } }, "pidgeon": { }, "preposition": { }, "pronoun": { }, "property": { }, "propertyOf": { }, "punctuation": { }, "queryable": { }, "questionMark": { }, "rank": { }, "readonly": { }, "reason": { }, "remember": { }, "second": { }, "spock": { "eye": { "has": true, "value": { "concept": true, "dead": true, "level": 1, "marker": "unknown", "range": { "end": 21, "start": 17 }, "text": "brown", "types": [ "unknown" ], "unknown": true, "value": "brown", "word": "brown" } }, "name": { "has": true, "value": { "concept": true, "dead": true, "level": 1, "marker": "unknown", "range": { "end": 20, "start": 16 }, "text": "spock", "types": [ "unknown" ], "unknown": true, "value": "spock", "word": "spock" } }, "rank": { "has": true, "value": { "concept": true, "dead": true, "level": 1, "marker": "unknown", "range": { "end": 21, "start": 16 }, "text": "second", "types": [ "unknown" ], "unknown": true, "value": "second", "word": "second" } } }, "status": { }, "stm_before": { }, "that": { }, "the": { }, "theAble": { }, "this": { }, "thisitthat": { }, "to": { }, "toAble": { }, "torpedo": { }, "unknown": { }, "verb": { }, "weapon": { }, "what": { }, "whatAble": { }, "whose": { }, "wolf": { }, "xfx": { } } }, "property": { "eye": [ { "concept": true, "dead": true, "level": 1, "marker": "unknown", "range": { "end": 19, "start": 16 }, "text": "blue", "types": [ "unknown" ], "unknown": true, "value": "blue", "word": "blue" }, { "concept": true, "dead": true, "level": 1, "marker": "unknown", "range": { "end": 21, "start": 17 }, "text": "brown", "types": [ "unknown" ], "unknown": true, "value": "brown", "word": "brown" }, { "concept": true, "dead": true, "level": 1, "marker": "unknown", "range": { "end": 21, "start": 17 }, "text": "brown", "types": [ "unknown" ], "unknown": true, "value": "brown", "word": "brown" } ], "name": [ { "concept": true, "dead": true, "level": 1, "marker": "unknown", "range": { "end": 17, "start": 15 }, "text": "jim", "types": [ "unknown" ], "unknown": true, "value": "jim", "word": "jim" }, { "concept": true, "dead": true, "level": 1, "marker": "unknown", "range": { "end": 20, "start": 16 }, "text": "spock", "types": [ "unknown" ], "unknown": true, "value": "spock", "word": "spock" }, { "concept": true, "dead": true, "level": 1, "marker": "unknown", "range": { "end": 20, "start": 16 }, "text": "mccoy", "types": [ "unknown" ], "unknown": true, "value": "mccoy", "word": "mccoy" } ], "rank": [ { "concept": true, "dead": true, "level": 1, "marker": "unknown", "range": { "end": 21, "start": 15 }, "text": "captain", "types": [ "unknown" ], "unknown": true, "value": "captain", "word": "captain" }, { "concept": true, "dead": true, "level": 1, "marker": "unknown", "range": { "end": 21, "start": 16 }, "text": "second", "types": [ "unknown" ], "unknown": true, "value": "second", "word": "second" }, { "concept": true, "dead": true, "level": 1, "marker": "doctor", "number": "one", "range": { "end": 21, "start": 16 }, "text": "doctor", "types": [ "doctor" ], "value": "doctor", "word": "doctor" } ], "status": [ { "concept": true, "dead": true, "level": 1, "marker": "unknown", "range": { "end": 33, "start": 29 }, "text": "armed", "types": [ "unknown" ], "unknown": true, "value": "armed", "word": "armed" }, { "concept": true, "dead": true, "level": 1, "marker": "unknown", "range": { "end": 42, "start": 38 }, "text": "armed", "types": [ "unknown" ], "unknown": true, "value": "armed", "word": "armed" }, { "concept": true, "dead": true, "level": 1, "marker": "unknown", "range": { "end": 53, "start": 49 }, "text": "armed", "types": [ "unknown" ], "unknown": true, "value": "armed", "word": "armed" } ] }, "relations": [ ], "valueToWords": { } }, "punctuation2": { }, "sdefaults2": { }, "stm2": { "mentioned": [ ], "variables": { } }, "tokenize2": { } }, "processed": [ { "context": { "context_index": 1, "dead": true, "focusable": [ "weapon" ], "level": 1, "marker": "arm", "number": "many", "range": { "end": 14, "start": 0 }, "text": "arm the phasers", "topLevel": true, "touchedBy": [ "crew#call2" ], "unflatten": [ "weapon" ], "value": "arm", "weapon": { "concept": true, "dead": true, "determiner": "the", "focusableForPhrase": true, "level": 1, "marker": "phaser", "modifiers": [ "determiner" ], "number": "many", "pullFromContext": true, "range": { "end": 14, "start": 4 }, "text": "the phasers", "types": [ "phaser" ], "value": "phaser", "wantsValue": true, "word": "phasers" }, "word": "arm" }, "generatedParenthesized": "", "paraphrases": "arm the phasers", "paraphrasesParenthesized": "(arm (the (phasers)))", "responses": [ "" ] }, { "context": { "context_index": 1, "dead": true, "default": true, "from": { "dead": true, "focusable": [ "weapon" ], "level": 1, "marker": "disarm", "number": "many", "range": { "end": 16, "start": 0 }, "text": "disarm the weapon", "unflatten": [ "weapon" ], "value": "disarm", "weapon": { "concept": true, "dead": true, "determiner": "the", "focusableForPhrase": true, "level": 1, "marker": "unknown", "modifiers": [ "determiner" ], "pullFromContext": true, "range": { "end": 16, "start": 7 }, "text": "the weapon", "types": [ "unknown", "weapon" ], "unknown": true, "value": "weapon", "wantsValue": true, "word": "weapon" }, "word": "disarm" }, "level": 1, "marker": "means", "metaInfo": "The mapping from from the expression being defined \"disarm the weapon\" to the definition phrase \"the status of the weapon is not armed\" is [{\"from\":[\"weapon\"],\"to\":[\"one\",\"object\"]},{\"from\":[\"number\"],\"to\":[\"number\"]}]", "range": { "end": 60, "start": 0 }, "text": "disarm the weapon means the status of the weapon is not armed", "to": { "level": 1, "marker": "is", "number": "one", "one": { "concept": true, "dead": true, "determiner": "the", "focusableForPhrase": true, "level": 1, "marker": "property", "modifiers": [ "determiner" ], "number": "one", "object": { "concept": true, "dead": true, "determiner": "the", "focusableForPhrase": true, "level": 1, "marker": "object", "modifiers": [ "determiner" ], "pullFromContext": true, "range": { "end": 47, "start": 38 }, "text": "the weapon", "types": [ "object", "unknown" ], "unknown": true, "value": "weapon", "wantsValue": true, "word": "weapon" }, "objects": [ { "concept": true, "dead": true, "determiner": "the", "focusableForPhrase": true, "level": 1, "marker": "property", "modifiers": [ "determiner" ], "pullFromContext": true, "range": { "end": 33, "start": 24 }, "text": "the status", "types": [ "property", "unknown" ], "unknown": true, "value": "status", "wantsValue": true, "word": "status" }, { "concept": true, "dead": true, "determiner": "the", "focusableForPhrase": true, "level": 1, "marker": "object", "modifiers": [ "determiner" ], "pullFromContext": true, "range": { "end": 47, "start": 38 }, "text": "the weapon", "types": [ "object", "unknown" ], "unknown": true, "value": "weapon", "wantsValue": true, "word": "weapon" } ], "pullFromContext": true, "range": { "end": 60, "start": 24 }, "text": "the status of the weapon", "types": [ "property", "unknown" ], "unknown": true, "value": "status", "wantsValue": true, "word": "status" }, "range": { "end": 60, "start": 24 }, "text": "the status of the weapon is not armed", "two": { "dead": true, "level": 1, "marker": "unknown", "modifiers": [ "negated" ], "negated": { "default": true, "level": 0, "marker": "not", "range": { "end": 54, "start": 52 }, "text": "not", "value": "not", "word": "not" }, "range": { "end": 60, "start": 52 }, "text": "not armed", "types": [ "negatable", "unknown" ], "unknown": true, "value": "armed", "word": "armed" }, "word": "is" }, "topLevel": true, "touchedBy": [ "crew#call2", "instance25#crew#call2" ], "value": "means", "word": "means" }, "generatedParenthesized": [ ], "paraphrases": "disarm the weapon means the status of the weapon is not armed", "paraphrasesParenthesized": [ ], "responses": [ "" ] }, { "context": { "context_index": 1, "dead": true, "default": true, "from": { "dead": true, "focusable": [ "weapon" ], "level": 1, "marker": "arm", "number": "many", "range": { "end": 13, "start": 0 }, "text": "arm the weapon", "unflatten": [ "weapon" ], "value": "arm", "weapon": { "concept": true, "dead": true, "determiner": "the", "focusableForPhrase": true, "level": 1, "marker": "weapon", "modifiers": [ "determiner" ], "pullFromContext": true, "range": { "end": 13, "start": 4 }, "text": "the weapon", "types": [ "unknown", "weapon" ], "unknown": true, "value": "weapon", "wantsValue": true, "word": "weapon" }, "word": "arm" }, "level": 1, "marker": "means", "metaInfo": "The mapping from from the expression being defined \"arm the weapon\" to the definition phrase \"the status of the weapon is armed\" is [{\"from\":[\"weapon\"],\"to\":[\"one\",\"object\"]},{\"from\":[\"number\"],\"to\":[\"number\"]}]", "range": { "end": 53, "start": 0 }, "text": "arm the weapon means the status of the weapon is armed", "to": { "level": 1, "marker": "is", "number": "one", "one": { "concept": true, "dead": true, "determiner": "the", "focusableForPhrase": true, "level": 1, "marker": "property", "modifiers": [ "determiner" ], "number": "one", "object": { "concept": true, "dead": true, "determiner": "the", "focusableForPhrase": true, "level": 1, "marker": "object", "modifiers": [ "determiner" ], "pullFromContext": true, "range": { "end": 44, "start": 35 }, "text": "the weapon", "types": [ "object", "unknown" ], "unknown": true, "value": "weapon", "wantsValue": true, "word": "weapon" }, "objects": [ { "concept": true, "dead": true, "determiner": "the", "focusableForPhrase": true, "level": 1, "marker": "property", "modifiers": [ "determiner" ], "pullFromContext": true, "range": { "end": 30, "start": 21 }, "text": "the status", "types": [ "property", "unknown" ], "unknown": true, "value": "status", "wantsValue": true, "word": "status" }, { "concept": true, "dead": true, "determiner": "the", "focusableForPhrase": true, "level": 1, "marker": "object", "modifiers": [ "determiner" ], "pullFromContext": true, "range": { "end": 44, "start": 35 }, "text": "the weapon", "types": [ "object", "unknown" ], "unknown": true, "value": "weapon", "wantsValue": true, "word": "weapon" } ], "pullFromContext": true, "range": { "end": 53, "start": 21 }, "text": "the status of the weapon", "types": [ "property", "unknown" ], "unknown": true, "value": "status", "wantsValue": true, "word": "status" }, "range": { "end": 53, "start": 21 }, "text": "the status of the weapon is armed", "two": { "dead": true, "level": 1, "marker": "unknown", "range": { "end": 53, "start": 49 }, "text": "armed", "types": [ "unknown" ], "unknown": true, "value": "armed", "word": "armed" }, "word": "is" }, "topLevel": true, "touchedBy": [ "crew#call2", "instance24#crew#call2" ], "value": "means", "word": "means" }, "generatedParenthesized": [ ], "paraphrases": "arm the weapon means the status of the weapon is armed", "paraphrasesParenthesized": [ ], "responses": [ "" ] }, { "context": { "context_index": 1, "dead": true, "level": 2, "marker": "is", "number": "one", "one": { "concept": true, "dead": true, "level": 1, "marker": "mccoy", "number": "one", "range": { "end": 16, "start": 0 }, "text": "mccoy", "types": [ "mccoy" ], "value": "mccoy", "word": "mccoy" }, "range": { "end": 16, "start": 0 }, "text": "mccoy is readonly", "topLevel": true, "touchedBy": [ "crew#call2", "instance23#crew#call2" ], "two": { "dead": true, "default": true, "level": 1, "marker": "readonly", "range": { "end": 16, "start": 9 }, "text": "readonly", "types": [ "readonly" ], "value": "readonly", "word": "readonly" }, "word": "is" }, "generatedParenthesized": [ ], "paraphrases": "mccoy is readonly", "paraphrasesParenthesized": [ ], "responses": [ "" ] }, { "context": { "context_index": 1, "dead": true, "level": 2, "marker": "is", "number": "one", "one": { "concept": true, "dead": true, "level": 1, "marker": "spock", "number": "one", "range": { "end": 16, "start": 0 }, "text": "spock", "types": [ "spock" ], "value": "spock", "word": "spock" }, "range": { "end": 16, "start": 0 }, "text": "spock is readonly", "topLevel": true, "touchedBy": [ "crew#call2", "instance22#crew#call2" ], "two": { "dead": true, "default": true, "level": 1, "marker": "readonly", "range": { "end": 16, "start": 9 }, "text": "readonly", "types": [ "readonly" ], "value": "readonly", "word": "readonly" }, "word": "is" }, "generatedParenthesized": [ ], "paraphrases": "spock is readonly", "paraphrasesParenthesized": [ ], "responses": [ "" ] }, { "context": { "context_index": 1, "dead": true, "level": 2, "marker": "is", "number": "one", "one": { "concept": true, "dead": true, "level": 1, "marker": "kirk", "number": "one", "range": { "end": 15, "start": 0 }, "text": "kirk", "types": [ "kirk" ], "value": "kirk", "word": "kirk" }, "range": { "end": 15, "start": 0 }, "text": "kirk is readonly", "topLevel": true, "touchedBy": [ "crew#call2", "instance21#crew#call2" ], "two": { "dead": true, "default": true, "level": 1, "marker": "readonly", "range": { "end": 15, "start": 8 }, "text": "readonly", "types": [ "readonly" ], "value": "readonly", "word": "readonly" }, "word": "is" }, "generatedParenthesized": [ ],