UNPKG

tpmkms

Version:

Reusable libraries for Entodicton, a natural language to json converter

2,663 lines 362 kB
{ "configs": [ "pokemon modifies type", "pokemon type is a type", "pikachu squirtle weedle and pidgeot are pokemon", "fire modifies type", "water modifies type", "earth modifies type", "electric modifies type", "fire type is a pokemon type", "water type is a pokemon type", "electric type is a pokemon type", "earth type is a pokemon type", "pikachu is an electric type", "charmander is a fire type" ], "resultss": [ { "hierarchy": [ [ "a", "article", false ], [ "adjective", "adjective", false ], [ "article", "article", false ], [ "between", "preposition", false ], [ "canBeDoQuestion", "canBeDoQuestion", false ], [ "canBeQuestion", "canBeQuestion", false ], [ "concept", "queryable", false ], [ "concept", "theAble", false ], [ "deletable", "deletable", false ], [ "delete", "verb", false ], [ "distributable", "queryable", false ], [ "doubleQuote", "queryable", false ], [ "each", "article", false ], [ "every", "article", false ], [ "have", "canBeDoQuestion", false ], [ "have", "canBeQuestion", false ], [ "hierarchyAble", "queryable", false ], [ "ifAble", "ifAble", false ], [ "is", "canBeQuestion", false ], [ "is", "verb", false ], [ "isQuery", "verb", false ], [ "it", "pronoun", false ], [ "it", "queryable", false ], [ "it", "thisitthat", false ], [ "it", "toAble", false ], [ "likes", "canBeQuestion", false ], [ "likes", "ifAble", false ], [ "likes", "orAble", false ], [ "listable", "theAble", false ], [ "memorable", "deletable", false ], [ "memorable", "theAble", false ], [ "modifies", "verb", false ], [ "negatable", "queryable", false ], [ "noun", "theAble", false ], [ "noun", "thisAble", false ], [ "object", "listable", false ], [ "object", "queryable", false ], [ "object", "theAble", false ], [ "orAble", "ifAble", false ], [ "preposition", "preposition", false ], [ "pronoun", "pronoun", false ], [ "property", "queryable", false ], [ "property", "theAble", false ], [ "propertyOf", "preposition", false ], [ "punctuation", "punctuation", false ], [ "queryable", "listable", false ], [ "questionMark", "punctuation", false ], [ "readonly", "queryable", false ], [ "reason", "queryable", false ], [ "reason", "theAble", false ], [ "recall", "verb", false ], [ "remember", "verb", false ], [ "stm_before", "adjective", false ], [ "stm_current", "adjective", false ], [ "stm_previous", "adjective", false ], [ "that", "thisitthat", false ], [ "the", "article", false ], [ "theAble", "queryable", false ], [ "this", "pronoun", false ], [ "this", "queryable", false ], [ "this", "thisitthat", false ], [ "thisAble", "thisAble", false ], [ "thisitthat", "queryable", false ], [ "to", "preposition", false ], [ "toAble", "toAble", false ], [ "type", "property", false ], [ "type", "whatAble", false ], [ "unknown", "hierarchyAble", false ], [ "verb", "verb", false ], [ "what", "object", false ], [ "what", "queryable", false ], [ "whatAble", "queryable", false ], [ "whose", "object", false ], [ "xfx", "queryable", false ] ], "metadata": { "opChoices": [ { "op": [ "unknown", 0 ], "ops": [ [ "modifies", 0 ], [ "unknown", 0 ] ], "counter": 1 }, { "op": [ "modifies", 0 ], "ops": [ [ "modifies", 0 ] ], "counter": 2 } ] }, "trace": "undefined", "contexts": [ { "word": "modifies", "number": "one", "flatten": false, "text": "pokemon modifies type", "marker": "modifies", "range": { "start": 0, "end": 20 }, "dead": true, "conceptModifiers": [ { "value": "pokemon", "unknown": true, "text": "pokemon", "marker": "unknown", "word": "pokemon", "range": { "start": 0, "end": 6 }, "dead": true, "level": 0 } ], "concept": { "marker": "type", "default": true, "dead": true, "word": "type", "text": "type", "range": { "start": 17, "end": 20 }, "level": 0 }, "level": 1, "context_index": 1, "topLevel": true, "context_id": 2, "touchedBy": [ "pokemon#call2" ] } ], "generated": [ "" ], "paraphrases": [ "pokemon modify type" ], "paraphrasesParenthesized": [], "generatedParenthesized": [], "responses": [ "" ], "associations": [ [ [ "modifies", 0 ], [ "type", 0 ], [ "unknown", 0 ] ] ], "summaries": [ { "summaries": [ { "operators": [ { "marker": [ "unknown", 0 ], "range": { "start": 0, "end": 6 } }, { "marker": [ "modifies", 0 ], "range": { "start": 8, "end": 15 } }, { "marker": [ "type", 0 ], "range": { "start": 17, "end": 20 } } ], "counter": 1 }, { "operators": [ { "marker": [ "unknown", 0 ], "range": { "start": 0, "end": 6 } }, { "marker": [ "modifies", 0 ], "range": { "start": 8, "end": 15 } }, { "marker": [ "type", 0 ], "range": { "start": 17, "end": 20 } } ], "counter": 2 }, { "operators": [ { "marker": [ "modifies", 1 ], "range": { "start": 0, "end": 20 } } ], "counter": 3 } ], "length": 1 } ], "learned_contextual_priorities": [], "rtf_associations": [], "query": "pokemon modifies type", "key": { "query": "pokemon modifies type" } }, { "hierarchy": [ [ "a", "article", false ], [ "adjective", "adjective", false ], [ "article", "article", false ], [ "between", "preposition", false ], [ "canBeDoQuestion", "canBeDoQuestion", false ], [ "canBeQuestion", "canBeQuestion", false ], [ "concept", "queryable", false ], [ "concept", "theAble", false ], [ "deletable", "deletable", false ], [ "delete", "verb", false ], [ "distributable", "queryable", false ], [ "doubleQuote", "queryable", false ], [ "each", "article", false ], [ "every", "article", false ], [ "have", "canBeDoQuestion", false ], [ "have", "canBeQuestion", false ], [ "hierarchyAble", "queryable", false ], [ "ifAble", "ifAble", false ], [ "is", "canBeQuestion", false ], [ "is", "verb", false ], [ "isEdee", "isEdee", false ], [ "isEder", "isEder", false ], [ "isQuery", "verb", false ], [ "it", "pronoun", false ], [ "it", "queryable", false ], [ "it", "thisitthat", false ], [ "it", "toAble", false ], [ "likes", "canBeQuestion", false ], [ "likes", "ifAble", false ], [ "likes", "orAble", false ], [ "listable", "theAble", false ], [ "memorable", "deletable", false ], [ "memorable", "theAble", false ], [ "modifies", "verb", false ], [ "negatable", "queryable", false ], [ "noun", "theAble", false ], [ "noun", "thisAble", false ], [ "object", "listable", false ], [ "object", "queryable", false ], [ "object", "theAble", false ], [ "orAble", "ifAble", false ], [ "pokemon", "hierarchyAble", false ], [ "pokemon", "isEdee", false ], [ "pokemon", "isEder", false ], [ "pokemon", "object", false ], [ "pokemon", "property", false ], [ "pokemon", "queryable", false ], [ "pokemon", "theAble", false ], [ "pokemon", "type_modifier", false ], [ "pokemon_type", "adjective", true ], [ "pokemon_type", "concept", false ], [ "pokemon_type", "hierarchyAble", false ], [ "pokemon_type", "isEdee", false ], [ "pokemon_type", "isEder", false ], [ "pokemon_type", "object", false ], [ "pokemon_type", "property", false ], [ "pokemon_type", "queryable", false ], [ "pokemon_type", "theAble", false ], [ "pokemon_type", "type", false ], [ "preposition", "preposition", false ], [ "pronoun", "pronoun", false ], [ "property", "queryable", false ], [ "property", "theAble", false ], [ "propertyOf", "preposition", false ], [ "punctuation", "punctuation", false ], [ "queryable", "listable", false ], [ "questionMark", "punctuation", false ], [ "readonly", "queryable", false ], [ "reason", "queryable", false ], [ "reason", "theAble", false ], [ "recall", "verb", false ], [ "remember", "verb", false ], [ "stm_before", "adjective", false ], [ "stm_current", "adjective", false ], [ "stm_previous", "adjective", false ], [ "that", "thisitthat", false ], [ "the", "article", false ], [ "theAble", "queryable", false ], [ "this", "pronoun", false ], [ "this", "queryable", false ], [ "this", "thisitthat", false ], [ "thisAble", "thisAble", false ], [ "thisitthat", "queryable", false ], [ "to", "preposition", false ], [ "toAble", "toAble", false ], [ "type", "concept", false ], [ "type", "hierarchyAble", false ], [ "type", "isEdee", false ], [ "type", "isEder", false ], [ "type", "object", false ], [ "type", "property", false ], [ "type", "queryable", false ], [ "type", "theAble", false ], [ "type", "whatAble", false ], [ "type_modifier", "adjective", false ], [ "unknown", "hierarchyAble", false ], [ "verb", "verb", false ], [ "what", "object", false ], [ "what", "queryable", false ], [ "whatAble", "queryable", false ], [ "whose", "object", false ], [ "xfx", "queryable", false ] ], "metadata": { "opChoices": [ { "op": [ "pokemon_type", 0 ], "ops": [ [ "a", 0 ], [ "is", 0 ], [ "pokemon", 0 ], [ "pokemon_type", 0 ] ], "counter": 1 }, { "op": [ "a", 0 ], "ops": [ [ "a", 0 ], [ "is", 0 ] ], "counter": 2 }, { "op": [ "is", 0 ], "ops": [ [ "is", 0 ] ], "counter": 3 }, { "op": [ "is", 1 ], "ops": [ [ "is", 1 ] ], "counter": 4 } ] }, "trace": "undefined", "contexts": [ { "number": "one", "text": "pokemon type is a type", "marker": "is", "word": "is", "range": { "start": 0, "end": 21 }, "one": { "number": "one", "marker": "pokemon_type", "default": true, "dead": true, "word": "type", "text": "pokemon type", "range": { "start": 0, "end": 11 }, "types": [ "pokemon_type", "type" ], "modifier_pokemon": { "value": "pokemon", "number": "one", "text": "pokemon", "marker": "pokemon", "word": "pokemon", "range": { "start": 0, "end": 6 }, "types": [ "pokemon" ], "level": 0 }, "atomic": true, "value": "pokemon_type", "modifiers": [ "modifier_pokemon" ], "level": 0 }, "two": { "marker": "type", "default": true, "dead": true, "word": "type", "text": "a type", "range": { "start": 16, "end": 21 }, "types": [ "type" ], "pullFromContext": false, "instance": true, "concept": true, "number": "one", "wantsValue": true, "determiner": { "marker": "a", "default": true, "word": "a", "text": "a", "range": { "start": 16, "end": 16 }, "level": 0 }, "modifiers": [ "determiner" ], "level": 0 }, "dead": true, "level": 2, "context_index": 1, "topLevel": true, "context_id": 2, "touchedBy": [ "pokemon#call2" ] } ], "generated": [ "" ], "paraphrases": [ "pokemon type is a type" ], "paraphrasesParenthesized": [], "generatedParenthesized": [], "responses": [ "" ], "associations": [ [ [ "a", 0 ], [ "is", 0 ], [ "pokemon", 0 ], [ "type", 0 ] ], [ [ "a", 0 ], [ "is", 0 ], [ "pokemon_type", 0 ], [ "type", 0 ] ], [ [ "is", 0 ], [ "pokemon_type", 0 ], [ "type", 0 ] ] ], "summaries": [ { "summaries": [ { "operators": [ { "marker": [ "pokemon", 0 ], "range": { "start": 0, "end": 6 } }, { "marker": [ "type", 0 ], "range": { "start": 8, "end": 11 } }, { "marker": [ "is", 0 ], "range": { "start": 13, "end": 14 } }, { "marker": [ "a", 0 ], "range": { "start": 16, "end": 16 } }, { "marker": [ "type", 0 ], "range": { "start": 18, "end": 21 } } ], "counter": 1 }, { "operators": [ { "marker": [ "pokemon_type", 0 ], "range": { "start": 0, "end": 11 } }, { "marker": [ "is", 0 ], "range": { "start": 13, "end": 14 } }, { "marker": [ "a", 0 ], "range": { "start": 16, "end": 16 } }, { "marker": [ "type", 0 ], "range": { "start": 18, "end": 21 } } ], "counter": 2 }, { "operators": [ { "marker": [ "pokemon_type", 0 ], "range": { "start": 0, "end": 11 } }, { "marker": [ "is", 0 ], "range": { "start": 13, "end": 14 } }, { "marker": [ "type", 0 ], "range": { "start": 16, "end": 21 } } ], "counter": 3 }, { "operators": [ { "marker": [ "is", 1 ], "range": { "start": 0, "end": 21 } } ], "counter": 4 }, { "operators": [ { "marker": [ "is", 2 ], "range": { "start": 0, "end": 21 } } ], "counter": 5 } ], "length": 1 } ], "learned_contextual_priorities": [], "rtf_associations": [], "query": "pokemon type is a type", "key": { "query": "pokemon type is a type" } }, { "hierarchy": [ [ "a", "article", false ], [ "adjective", "adjective", false ], [ "article", "article", false ], [ "between", "preposition", false ], [ "canBeDoQuestion", "canBeDoQuestion", false ], [ "canBeQuestion", "canBeQuestion", false ], [ "concept", "queryable", false ], [ "concept", "theAble", false ], [ "deletable", "deletable", false ], [ "delete", "verb", false ], [ "distributable", "queryable", false ], [ "doubleQuote", "queryable", false ], [ "each", "article", false ], [ "every", "article", false ], [ "have", "canBeDoQuestion", false ], [ "have", "canBeQuestion", false ], [ "hierarchyAble", "queryable", false ], [ "ifAble", "ifAble", false ], [ "is", "canBeQuestion", false ], [ "is", "verb", false ], [ "isEdee", "isEdee", false ], [ "isEder", "isEder", false ], [ "isQuery", "verb", false ], [ "it", "pronoun", false ], [ "it", "queryable", false ], [ "it", "thisitthat", false ], [ "it", "toAble", false ], [ "likes", "canBeQuestion", false ], [ "likes", "ifAble", false ], [ "likes", "orAble", false ], [ "listable", "theAble", false ], [ "memorable", "deletable", false ], [ "memorable", "theAble", false ], [ "modifies", "verb", false ], [ "negatable", "queryable", false ], [ "noun", "theAble", false ], [ "noun", "thisAble", false ], [ "object", "listable", false ], [ "object", "queryable", false ], [ "object", "theAble", false ], [ "orAble", "ifAble", false ], [ "pokemon", "hierarchyAble", false ], [ "pokemon", "isEdee", false ], [ "pokemon", "isEder", false ], [ "pokemon", "object", false ], [ "pokemon", "property", false ], [ "pokemon", "queryable", false ], [ "pokemon", "theAble", false ], [ "pokemon", "type_modifier", false ], [ "pokemon_type", "adjective", true ], [ "pokemon_type", "concept", false ], [ "pokemon_type", "hierarchyAble", false ], [ "pokemon_type", "isEdee", false ], [ "pokemon_type", "isEder", false ], [ "pokemon_type", "object", false ], [ "pokemon_type", "property", false ], [ "pokemon_type", "queryable", false ], [ "pokemon_type", "theAble", false ], [ "pokemon_type", "type", false ], [ "preposition", "preposition", false ], [ "pronoun", "pronoun", false ], [ "property", "queryable", false ], [ "property", "theAble", false ], [ "propertyOf", "preposition", false ], [ "punctuation", "punctuation", false ], [ "queryable", "listable", false ], [ "questionMark", "punctuation", false ], [ "readonly", "queryable", false ], [ "reason", "queryable", false ], [ "reason", "theAble", false ], [ "recall", "verb", false ], [ "remember", "verb", false ], [ "stm_before", "adjective", false ], [ "stm_current", "adjective", false ], [ "stm_previous", "adjective", false ], [ "that", "thisitthat", false ], [ "the", "article", false ], [ "theAble", "queryable", false ], [ "this", "pronoun", false ], [ "this", "queryable", false ], [ "this", "thisitthat", false ], [ "thisAble", "thisAble", false ], [ "thisitthat", "queryable", false ], [ "to", "preposition", false ], [ "toAble", "toAble", false ], [ "type", "concept", false ], [ "type", "hierarchyAble", false ], [ "type", "isEdee", false ], [ "type", "isEder", false ], [ "type", "object", false ], [ "type", "property", false ], [ "type", "queryable", false ], [ "type", "theAble", false ], [ "type", "whatAble", false ], [ "type_modifier", "adjective", false ], [ "unknown", "hierarchyAble", false ], [ "verb", "verb", false ], [ "what", "object", false ], [ "what", "queryable", false ], [ "whatAble", "queryable", false ], [ "whose", "object", false ], [ "xfx", "queryable", false ] ], "metadata": { "opChoices": [ { "op": [ "unknown", 0 ], "ops": [ [ "is", 0 ], [ "list", 0 ], [ "pokemon", 0 ], [ "unknown", 0 ], [ "unknown", 0 ], [ "unknown", 0 ], [ "unknown", 0 ] ], "counter": 1 }, { "op": [ "unknown", 0 ], "ops": [ [ "is", 0 ], [ "list", 0 ], [ "pokemon", 0 ], [ "unknown", 0 ], [ "unknown", 0 ], [ "unknown", 0 ] ], "counter": 2 }, { "op": [ "unknown", 0 ], "ops": [ [ "is", 0 ], [ "list", 0 ], [ "pokemon", 0 ], [ "unknown", 0 ], [ "unknown", 0 ] ], "counter": 3 }, { "op": [ "unknown", 0 ], "ops": [ [ "is", 0 ], [ "list", 0 ], [ "pokemon", 0 ], [ "unknown", 0 ] ], "counter": 4 }, { "op": [ "list", 0 ], "ops": [ [ "is", 0 ], [ "list", 0 ], [ "pokemon", 0 ] ], "counter": 5 }, { "op": [ "list", 1 ], "ops": [ [ "is", 0 ], [ "list", 1 ], [ "pokemon", 0 ] ], "counter": 6 }, { "op": [ "list", 1 ], "ops": [ [ "is", 0 ], [ "list", 1 ], [ "pokemon", 0 ] ], "counter": 7 }, { "op": [ "pokemon", 0 ], "ops": [ [ "is", 0 ], [ "pokemon", 0 ] ], "counter": 8 }, { "op": [ "is", 0 ], "ops": [ [ "is", 0 ] ], "counter": 9 }, { "op": [ "is", 1 ], "ops": [ [ "is", 1 ] ], "counter": 10 } ] }, "trace": "undefined", "contexts": [ { "number": "many", "text": "pikachu squirtle weedle and pidgeot are pokemon", "marker": "is", "word": "are", "range": { "start": 0, "end": 46 }, "one": { "number": "many", "marker": "list", "default": true, "word": "and", "text": "pikachu squirtle weedle and pidgeot", "range": { "start": 0, "end": 34 }, "types": [ "list", "unknown" ], "listable": true, "isList": true, "value": [ { "value": "pikachu", "unknown": true, "text": "pikachu", "marker": "unknown", "word": "pikachu", "range": { "start": 0, "end": 6 }, "dead": true, "types": [ "unknown" ], "level": 0 }, { "value": "squirtle", "unknown": true, "text": "squirtle", "marker": "unknown", "word": "squirtle", "range": { "start": 8, "end": 15 }, "dead": true, "types": [ "unknown" ], "level": 0 }, { "value": "weedle", "unknown": true, "text": "weedle", "marker": "unknown", "word": "weedle", "range": { "start": 17, "end": 22 }, "dead": true, "types": [ "unknown" ], "level": 0 }, { "value": "pidgeot", "unknown": true, "text": "pidgeot", "marker": "unknown", "word": "pidgeot", "range": { "start": 28, "end": 34 }, "dead": true, "types": [ "unknown" ], "level": 0 } ], "level": 1 }, "two": { "value": "pokemon", "number": "many", "text": "pokemon", "marker": "pokemon", "word": "pokemon", "range": { "start": 40, "end": 46 }, "dead": true, "types": [ "pokemon" ], "level": 1, "concept": true }, "dead": true, "level": 2, "context_index": 1, "topLevel": true, "context_id": 2, "touchedBy": [ "pokemon#call2" ] } ], "generated": [ "" ], "paraphrases": [ "pikachu, squirtle, weedle and pidgeot are pokemon" ], "paraphrasesParenthesized": [], "generatedParenthesized": [], "responses": [ "" ], "associations": [ [ [ "is", 0 ], [ "list", 0 ], [ "pokemon", 0 ], [ "unknown", 0 ] ], [ [ "is", 0 ], [ "list", 1 ] ], [ [ "is", 0 ], [ "list", 1 ], [ "pokemon", 0 ] ], [ [ "is", 0 ], [ "list", 1 ], [ "pokemon", 0 ], [ "unknown", 0 ] ] ], "summaries": [ { "summaries": [ { "operators": [ { "marker": [ "unknown", 0 ], "range": { "start": 0, "end": 6 } }, { "marker": [ "unknown", 0 ], "range": { "start": 8, "end": 15 } }, { "marker": [ "unknown", 0 ], "range": { "start": 17, "end": 22 } }, { "marker": [ "list", 0 ], "range": { "start": 24, "end": 26 } }, { "marker": [ "unknown", 0 ], "range": { "start": 28, "end": 34 } }, { "marker": [ "is", 0 ], "range": { "start": 36, "end": 38 } }, { "marker": [ "pokemon", 0 ], "range": { "start": 40, "end": 46 } } ], "counter": 1 }, { "operators": [ { "marker": [ "unknown", 0 ], "range": { "start": 0, "end": 6 } }, { "marker": [ "unknown", 0 ], "range": { "start": 8, "end": 15 } }, { "marker": [ "unknown", 0 ], "range": { "start": 17, "end": 22 } }, { "marker": [ "list", 0 ], "range": { "start": 24, "end": 26 } }, { "marker": [ "unknown", 0 ], "range": { "start": 28, "end": 34 } }, { "marker": [ "is", 0 ], "range": { "start": 36, "end": 38 } }, { "marker": [ "pokemon", 0 ], "range": { "start": 40, "end": 46 } } ], "counter": 2 }, { "operators": [ { "marker": [ "unknown", 0 ], "range": { "start": 0, "end": 6 } }, { "marker": [ "unknown", 0 ], "range": { "start": 8, "end": 15 } }, { "marker": [ "unknown", 0 ], "range": { "start": 17, "end": 22 } }, { "marker": [ "list", 0 ], "range": { "start": 24, "end": 26 } }, { "marker": [ "unknown", 0 ], "range": { "start": 28, "end":