UNPKG

tpmkms

Version:

Reusable libraries for Entodicton, a natural language to json converter

1,608 lines 36.9 kB
[ { "associations": [ [ [ "bat", 0 ], [ "does", 0 ], [ "have", 0 ], [ "unknown", 0 ] ], [ [ "does", 0 ], [ "have", 0 ], [ "unknown", 0 ] ], [ [ "does", 0 ], [ "have", 1 ] ] ], "config": { }, "contexts": [ { "context_id": 2, "context_index": 1, "dead": true, "do": { "left": "object", "range": { "end": 17, "start": 3 }, "right": "property", "text": "s have wings" }, "doesable": true, "evalue": { "marker": "yesno", "value": true }, "isResponse": true, "is_compound": true, "level": 2, "marker": "have", "number": "many", "object": { "dead": true, "level": 1, "marker": "bat", "number": "many", "range": { "end": 17, "start": 3 }, "text": "bats", "types": [ "bat" ], "value": "bat", "word": "bats" }, "property": { "dead": true, "level": 0, "marker": "property", "range": { "end": 17, "start": 13 }, "text": "wings", "types": [ "property" ], "unknown": true, "value": "wings", "word": "wings" }, "query": true, "range": { "end": 17, "start": 3 }, "text": "bats have wings", "topLevel": true, "touchedBy": [ "animals#call2" ], "types": [ "have" ], "what": "does", "word": "have" } ], "developerTest": false, "generatedParenthesized": [ "(yes)" ], "metadata": { "opChoices": [ { "counter": 1, "op": [ "unknown", 0 ], "ops": [ [ "bat", 0 ], [ "does", 0 ], [ "have", 0 ], [ "unknown", 0 ] ] }, { "counter": 2, "op": [ "bat", 0 ], "ops": [ [ "bat", 0 ], [ "does", 0 ], [ "have", 0 ] ] }, { "counter": 3, "op": [ "have", 0 ], "ops": [ [ "does", 0 ], [ "have", 0 ] ] }, { "counter": 4, "op": [ "does", 0 ], "ops": [ [ "does", 0 ], [ "have", 1 ] ] }, { "counter": 5, "op": [ "have", 1 ], "ops": [ [ "have", 1 ] ] } ] }, "objects": { "associations": [ ], "nameToUUID": { "animals": "animals1", "articles": "articles2", "asking": "asking2", "concept": "concept2", "conjunction": "conjunction2", "dialogues": "dialogues2", "evaluate": "evaluate2", "gdefaults": "gdefaults2", "hierarchy": "hierarchy2", "meta": "meta2", "negation": "negation2", "pos": "pos2", "properties": "properties2", "punctuation": "punctuation2", "sdefaults": "sdefaults2", "stm": "stm2", "tokenize": "tokenize2" }, "namespaced": { "animals1": { "km": "animals1" }, "articles2": { "km": "articles2" }, "asking2": { "km": "asking2" }, "concept2": { "defaultTypesForHierarchy": { }, "km": "concept2", "valueToWords": [ ] }, "conjunction2": { "km": "conjunction2" }, "dialogues2": { "idSuffix": "", "km": "dialogues2", "mentioned": [ ], "variables": { } }, "evaluate2": { "km": "evaluate2" }, "gdefaults2": { "km": "gdefaults2" }, "hierarchy2": { "km": "hierarchy2" }, "meta2": { "km": "meta2" }, "negation2": { "km": "negation2" }, "pos2": { "km": "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" ], "feline": [ "cat" ], "hierarchyAble": [ "unknown" ], "ifAble": [ "orAble" ], "listable": [ "object", "queryable" ], "mammal": [ "human", "bat", "feline", "canine" ], "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" ], "theAble": [ "property", "object", "concept", "listable", "reason", "memorable", "noun" ], "thisitthat": [ "it", "this", "that" ], "toAble": [ "it" ], "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_before", "adjective", "orAble", "ifAble", "each", "every", "distributable", "noun", "thisitthat", "that", "bird", "animal", "mammal", "human", "bat", "feline", "canine", "owl", "eagle", "pidgeon", "parrot", "cat", "dog", "wolf" ], "km": "properties2", "parents": { "a": [ "article" ], "bat": [ "mammal" ], "between": [ "preposition" ], "bird": [ "animal" ], "canine": [ "mammal" ], "cat": [ "feline" ], "concept": [ "theAble", "queryable" ], "distributable": [ "queryable" ], "dog": [ "canine" ], "doubleQuote": [ "queryable" ], "each": [ "article" ], "eagle": [ "bird" ], "every": [ "article" ], "feline": [ "mammal" ], "have": [ "canBeDoQuestion", "canBeQuestion" ], "hierarchyAble": [ "queryable" ], "human": [ "mammal" ], "is": [ "canBeQuestion", "verb" ], "isQuery": [ "verb" ], "it": [ "pronoun", "queryable", "toAble", "thisitthat" ], "listable": [ "theAble" ], "mammal": [ "animal" ], "memorable": [ "theAble" ], "modifies": [ "verb" ], "negatable": [ "queryable" ], "noun": [ "theAble" ], "object": [ "queryable", "theAble", "listable" ], "orAble": [ "ifAble" ], "owl": [ "bird" ], "parrot": [ "bird" ], "pidgeon": [ "bird" ], "property": [ "queryable", "theAble" ], "propertyOf": [ "preposition" ], "queryable": [ "listable" ], "questionMark": [ "punctuation" ], "readonly": [ "queryable" ], "reason": [ "theAble", "queryable" ], "remember": [ "verb" ], "stm_before": [ "adjective" ], "that": [ "thisitthat" ], "the": [ "article" ], "theAble": [ "queryable" ], "this": [ "pronoun", "queryable", "thisitthat" ], "thisitthat": [ "queryable" ], "to": [ "preposition" ], "unknown": [ "hierarchyAble" ], "what": [ "object", "queryable" ], "whatAble": [ "queryable" ], "whose": [ "object" ], "wolf": [ "canine" ], "xfx": [ "queryable" ] }, "properties": { "handlers": { }, "initHandlers": [ ], "root": { "a": { }, "adjective": { }, "animal": { "eye": { "has": true, "value": null }, "skin": { "has": true, "value": null } }, "article": { }, "bat": { "wing": { "has": true, "value": null } }, "between": { }, "bird": { "beak": { "has": true, "value": null }, "wing": { "has": true, "value": null } }, "canBeDoQuestion": { }, "canBeQuestion": { }, "canine": { }, "cat": { }, "concept": { }, "distributable": { }, "dog": { }, "doubleQuote": { }, "each": { }, "eagle": { }, "every": { }, "feline": { }, "have": { }, "hierarchyAble": { }, "human": { }, "ifAble": { }, "is": { }, "isQuery": { }, "it": { }, "listable": { }, "mammal": { "ear": { "has": true, "value": null }, "hair": { "has": true, "value": null }, "wing": { "has": false, "value": null } }, "memorable": { }, "modifies": { }, "negatable": { }, "noun": { }, "object": { }, "orAble": { }, "owl": { }, "parrot": { }, "pidgeon": { }, "preposition": { }, "pronoun": { }, "property": { }, "propertyOf": { }, "punctuation": { }, "queryable": { }, "questionMark": { }, "readonly": { }, "reason": { }, "remember": { }, "stm_before": { }, "that": { }, "the": { }, "theAble": { }, "this": { }, "thisitthat": { }, "to": { }, "toAble": { }, "unknown": { }, "verb": { }, "what": { }, "whatAble": { }, "whose": { }, "wolf": { }, "xfx": { } } }, "property": { }, "relations": [ ], "valueToWords": { } }, "punctuation2": { "km": "punctuation2" }, "sdefaults2": { "km": "sdefaults2" }, "stm2": { "km": "stm2", "mentioned": [ ], "variables": { } }, "tokenize2": { "km": "tokenize2" } }, "processed": [ { "context": { "context_id": 2, "context_index": 1, "dead": true, "do": { "left": "object", "range": { "end": 17, "start": 3 }, "right": "property", "text": "s have wings" }, "doesable": true, "evalue": { "marker": "yesno", "value": true }, "isResponse": true, "is_compound": true, "level": 2, "marker": "have", "number": "many", "object": { "dead": true, "level": 1, "marker": "bat", "number": "many", "range": { "end": 17, "start": 3 }, "text": "bats", "types": [ "bat" ], "value": "bat", "word": "bats" }, "property": { "dead": true, "level": 0, "marker": "property", "range": { "end": 17, "start": 13 }, "text": "wings", "types": [ "property" ], "unknown": true, "value": "wings", "word": "wings" }, "query": true, "range": { "end": 17, "start": 3 }, "text": "bats have wings", "topLevel": true, "touchedBy": [ "animals#call2" ], "types": [ "have" ], "what": "does", "word": "have" }, "generatedParenthesized": [ ], "paraphrases": [ ], "paraphrasesParenthesized": [ ], "responses": [ "yes" ] }, { "context": { "context_id": 2, "context_index": 1, "dead": true, "do": { "left": "object", "range": { "end": 14, "start": 0 }, "right": "property", "text": "bats have wings" }, "doesable": true, "level": 2, "marker": "have", "number": "many", "object": { "dead": true, "level": 1, "marker": "bat", "number": "many", "range": { "end": 14, "start": 0 }, "text": "bats", "types": [ "bat" ], "value": "bat", "word": "bats" }, "property": { "dead": true, "level": 0, "marker": "property", "range": { "end": 14, "start": 10 }, "text": "wings", "types": [ "property" ], "unknown": true, "value": "wings", "word": "wings" }, "range": { "end": 14, "start": 0 }, "sameWasProcessed": true, "text": "bats have wings", "topLevel": true, "touchedBy": [ "animals#call2", "instance12#animals#call2" ], "word": "have" }, "generatedParenthesized": [ ], "paraphrases": [ ], "paraphrasesParenthesized": [ ], "responses": [ ] }, { "context": { "context_id": 2, "context_index": 1, "dead": true, "level": 2, "marker": "is", "number": "many", "one": { "default": true, "isList": true, "level": 1, "listable": true, "marker": "list", "number": "many", "range": { "end": 26, "start": 0 }, "text": "dogs and wolves", "types": [ "list", "unknown" ], "value": [ { "dead": true, "level": 0, "marker": "unknown", "range": { "end": 3, "start": 0 }, "text": "dogs", "types": [ "unknown" ], "unknown": true, "value": "dogs", "word": "dogs" }, { "dead": true, "level": 0, "marker": "unknown", "range": { "end": 14, "start": 9 }, "text": "wolves", "types": [ "unknown" ], "unknown": true, "value": "wolves", "word": "wolves" } ], "word": "and" }, "range": { "end": 26, "start": 0 }, "text": "dogs and wolves are canines", "topLevel": true, "touchedBy": [ "animals#call2", "instance11#animals#call2" ], "two": { "concept": true, "dead": true, "level": 1, "marker": "canine", "number": "many", "range": { "end": 26, "start": 20 }, "text": "canines", "types": [ "canine" ], "value": "canine", "word": "canines" }, "word": "are" }, "generatedParenthesized": [ ], "paraphrases": [ ], "paraphrasesParenthesized": [ ], "responses": [ ] }, { "context": { "context_id": 2, "context_index": 1, "dead": true, "level": 2, "marker": "is", "number": "many", "one": { "dead": true, "level": 0, "marker": "unknown", "number": "many", "range": { "end": 15, "start": 0 }, "text": "cats", "types": [ "unknown" ], "unknown": true, "value": "cats", "word": "cats" }, "range": { "end": 15, "start": 0 }, "text": "cats are felines", "topLevel": true, "touchedBy": [ "animals#call2", "instance10#animals#call2" ], "two": { "concept": true, "dead": true, "level": 1, "marker": "feline", "number": "many", "range": { "end": 15, "start": 9 }, "text": "felines", "types": [ "feline" ], "value": "feline", "word": "felines" }, "word": "are" }, "generatedParenthesized": [ ], "paraphrases": [ ], "paraphrasesParenthesized": [ ], "responses": [ ] }, { "context": { "context_id": 2, "context_index": 1, "dead": true, "level": 2, "marker": "is", "number": "many", "one": { "default": true, "isList": true, "level": 1, "listable": true, "marker": "list", "number": "many", "range": { "end": 41, "start": 0 }, "text": "owls eagles pidgeons and parrots", "types": [ "list", "unknown" ], "value": [ { "dead": true, "level": 0, "marker": "unknown", "range": { "end": 3, "start": 0 }, "text": "owls", "types": [ "unknown" ], "unknown": true, "value": "owls", "word": "owls" }, { "dead": true, "level": 0, "marker": "unknown", "range": { "end": 10, "start": 5 }, "text": "eagles", "types": [ "unknown" ], "unknown": true, "value": "eagles", "word": "eagles" }, { "dead": true, "level": 0, "marker": "unknown", "range": { "end": 19, "start": 12 }, "text": "pidgeons", "types": [ "unknown" ], "unknown": true, "value": "pidgeons", "word": "pidgeons" }, { "dead": true, "level": 0, "marker": "unknown", "range": { "end": 31, "start": 25 }, "text": "parrots", "types": [ "unknown" ], "unknown": true, "value": "parrots", "word": "parrots" } ], "word": "and" }, "range": { "end": 41, "start": 0 }, "text": "owls eagles pidgeons and parrots are birds", "topLevel": true, "touchedBy": [ "animals#call2", "instance9#animals#call2" ], "two": { "concept": true, "dead": true, "level": 1, "marker": "bird", "number": "many", "range": { "end": 41, "start": 37 }, "text": "birds", "types": [ "bird" ], "value": "bird", "word": "birds" }, "word": "are" }, "generatedParenthesized": [ ], "paraphrases": [ ], "paraphrasesParenthesized": [ ], "responses": [ ] }, { "context": { "context_id": 2, "context_index": 1, "dead": true, "level": 2, "marker": "is", "number": "many", "one": { "default": true, "isList": true, "level": 1, "listable": true, "marker": "list", "number": "many", "range": { "end": 42, "start": 0 }, "text": "humans bats felines and canines", "types": [ "list", "unknown" ], "value": [ { "dead": true, "level": 0, "marker": "unknown", "range": { "end": 5, "start": 0 }, "text": "humans", "types": [ "unknown" ], "unknown": true, "value": "humans", "word": "humans" }, { "dead": true, "level": 0, "marker": "unknown", "range": { "end": 10, "start": 7 }, "text": "bats", "types": [ "unknown" ], "unknown": true, "value": "bats", "word": "bats" }, { "dead": true, "level": 0, "marker": "unknown", "range": { "end": 18, "start": 12 }, "text": "felines", "types": [ "unknown" ], "unknown": true, "value": "felines", "word": "felines" }, { "dead": true, "level": 0, "marker": "unknown", "range": { "end": 30, "start": 24 }, "text": "canines", "types": [ "unknown" ], "unknown": true, "value": "canines", "word": "canines" } ], "word": "and" }, "range": { "end": 42, "start": 0 }, "text": "humans bats felines and canines are mammals", "topLevel": true, "touchedBy": [ "animals#call2", "instance8#animals#call2" ], "two": { "concept": true, "dead": true, "level": 1, "marker": "mammal", "number": "many", "range": { "end": 42, "start": 36 }, "text": "mammals", "types": [ "mammal" ], "value": "mammal", "word": "mammals" }, "word": "are" }, "generatedParenthesized": [ ], "paraphrases": [ ], "paraphrasesParenthesized": [ ], "responses": [ ] } ] }, "paraphrases": [ "do bats have wings?" ], "paraphrasesParenthesized": [ "((do (bats) have (wings))?)" ], "query": "do bats have wings", "responses": [ "yes" ], "summaries": [ { "length": 1, "summaries": [ { "counter": 1, "operators": [ { "marker": [ "does", 0 ], "range": { "end": 1, "start": 0 } }, { "marker": [ "bat", 0 ], "range": { "end": 6, "start": 3 } }, { "marker": [ "have", 0 ], "range": { "end": 11, "start": 8 } }, { "marker": [ "unknown", 0 ], "range": { "end": 17, "start": 13 } } ] }, { "counter": 2, "operators": [ { "marker": [ "does", 0 ], "range": { "end": 1, "start": 0 } }, { "marker": [ "bat", 0 ], "range": { "end": 6, "start": 3 } }, { "marker": [ "have", 0 ], "range": { "end": 11, "start": 8 } }, { "marker": [ "unknown", 0 ], "range": { "end": 17, "start": 13 } } ] }, { "counter": 3, "operators": [ { "marker": [ "does", 0 ], "range": { "end": 1, "start": 0 } }, { "marker": [ "bat", 1 ], "range": { "end": 6, "start": 3 } }, { "marker": [ "have", 0 ], "range": { "end": 11, "start": 8 } }, { "marker": [ "unknown", 0 ], "range": { "end": 17, "start": 13 } } ] }, { "counter": 4, "operators": [ { "marker": [ "does", 0 ], "range": { "end": 1, "start": 0 } }, { "marker": [ "have", 1 ], "range": { "end": 17, "start": 3 } } ] }, { "counter": 5, "operators": [ { "marker": [ "have", 1 ], "range": { "end": 17, "start": 3 } } ] }, { "counter": 6, "operators": [ { "marker": [ "have", 2 ], "range": { "end": 17, "start": 3 } } ] } ] } ] } ]