UNPKG

tpmkms

Version:

Reusable libraries for Entodicton, a natural language to json converter

2,042 lines (2,041 loc) 262 kB
[ { "associations": [ [ [ "food", 0 ], [ "is", 0 ], [ "propertyOf", 0 ], [ "the", 0 ], [ "type", 0 ], [ "what", 0 ] ], [ [ "food", 0 ], [ "is", 0 ], [ "propertyOf", 0 ], [ "the", 0 ], [ "what", 0 ] ], [ [ "is", 0 ], [ "propertyOf", 0 ] ], [ [ "is", 0 ], [ "propertyOf", 0 ], [ "the", 0 ] ], [ [ "is", 0 ], [ "propertyOf", 0 ], [ "the", 0 ], [ "what", 0 ] ], [ [ "is", 0 ], [ "propertyOf", 1 ] ] ], "config": { }, "contexts": [ { "context_index": 1, "dead": true, "evalue": { "default": true, "focusable": [ "two", "one" ], "marker": "is", "number": "many", "one": { "concept": true, "dead": true, "default": true, "determiner": "the", "focusableForPhrase": true, "level": 1, "marker": "type", "modifiers": [ "determiner" ], "object": { "dead": true, "level": 1, "marker": "food", "number": "one", "range": { "end": 25, "start": 22 }, "text": "food", "types": [ "food" ], "value": "food", "word": "food" }, "objects": [ { "concept": true, "dead": true, "default": true, "determiner": "the", "focusableForPhrase": true, "level": 1, "marker": "type", "modifiers": [ "determiner" ], "pullFromContext": true, "range": { "end": 17, "start": 9 }, "text": "the types", "types": [ "type" ], "wantsValue": true, "word": "types" }, { "dead": true, "level": 1, "marker": "food", "number": "one", "range": { "end": 25, "start": 22 }, "text": "food", "types": [ "food" ], "value": "food", "word": "food" } ], "pullFromContext": true, "range": { "end": 25, "start": 9 }, "text": "the types of food", "types": [ "type" ], "wantsValue": true, "word": "types" }, "two": { "concept": true, "dead": true, "default": true, "determiner": "the", "evalue": { "marker": "list", "value": [ { "marker": "nugget", "number": "many", "paraphrase": true, "value": "nugget", "word": "nuggets" }, { "chicken": { "marker": "chicken", "value": "chicken", "word": "chicken" }, "marker": "chicken_strip", "modifiers": [ "chicken" ], "paraphrase": true, "types": [ "chicken_strip" ], "value": "chicken_strip", "word": "strips" }, { "chicken": { "marker": "chicken", "value": "chicken", "word": "chicken" }, "marker": "chicken_nugget", "modifiers": [ "chicken" ], "paraphrase": true, "types": [ "chicken_nugget" ], "value": "chicken_nugget", "word": "nuggets" }, { "marker": "sushi", "number": "many", "paraphrase": true, "value": "sushi", "word": "sushis" }, { "marker": "fry", "number": "many", "paraphrase": true, "value": "fry", "word": "fries" }, { "marker": "meat", "number": "many", "paraphrase": true, "value": "meat", "word": "meats" }, { "marker": "fruit", "number": "many", "paraphrase": true, "value": "fruit", "word": "fruits" }, { "marker": "pie", "number": "many", "paraphrase": true, "value": "pie", "word": "pies" }, { "marker": "salad", "number": "many", "paraphrase": true, "value": "salad", "word": "salads" }, { "marker": "sandwich", "number": "many", "paraphrase": true, "value": "sandwich", "word": "sandwiches" }, { "marker": "vegetable", "number": "many", "paraphrase": true, "value": "vegetable", "word": "vegetables" }, { "marker": "bread", "number": "many", "paraphrase": true, "value": "bread", "word": "breads" }, { "marker": "grain", "number": "many", "paraphrase": true, "value": "grain", "word": "grains" }, { "marker": "cheese", "number": "many", "paraphrase": true, "value": "cheese", "word": "cheeses" } ] }, "focus": true, "focusableForPhrase": true, "instance": true, "level": 1, "marker": "type", "modifiers": [ "determiner" ], "number": "many", "object": { "dead": true, "level": 1, "marker": "food", "number": "one", "range": { "end": 25, "start": 22 }, "text": "food", "types": [ "food" ], "value": "food", "word": "food" }, "objects": [ { "concept": true, "dead": true, "default": true, "determiner": "the", "focusableForPhrase": true, "level": 1, "marker": "type", "modifiers": [ "determiner" ], "pullFromContext": true, "range": { "end": 17, "start": 9 }, "text": "the types", "types": [ "type" ], "wantsValue": true, "word": "types" }, { "dead": true, "level": 1, "marker": "food", "number": "one", "range": { "end": 25, "start": 22 }, "text": "food", "types": [ "food" ], "value": "food", "word": "food" } ], "pullFromContext": true, "range": { "end": 25, "start": 9 }, "text": "the types of food", "touchedBy": [ "edible#call3", "edible#call2" ], "types": [ "type" ], "wantsValue": true, "word": "types" }, "word": "are" }, "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": 25, "start": 0 }, "text": "what", "types": [ "what" ], "value": "what", "word": "what" }, "query": [ "what" ], "range": { "end": 25, "start": 0 }, "text": "what are the types of food", "topLevel": true, "touchedBy": [ "edible#call2" ], "two": { "concept": true, "dead": true, "default": true, "determiner": "the", "focusableForPhrase": true, "level": 1, "marker": "type", "modifiers": [ "determiner" ], "object": { "dead": true, "level": 1, "marker": "food", "number": "one", "range": { "end": 25, "start": 22 }, "text": "food", "types": [ "food" ], "value": "food", "word": "food" }, "objects": [ { "concept": true, "dead": true, "default": true, "determiner": "the", "focusableForPhrase": true, "level": 1, "marker": "type", "modifiers": [ "determiner" ], "pullFromContext": true, "range": { "end": 17, "start": 9 }, "text": "the types", "types": [ "type" ], "wantsValue": true, "word": "types" }, { "dead": true, "level": 1, "marker": "food", "number": "one", "range": { "end": 25, "start": 22 }, "text": "food", "types": [ "food" ], "value": "food", "word": "food" } ], "pullFromContext": true, "range": { "end": 25, "start": 9 }, "text": "the types of food", "types": [ "type" ], "wantsValue": true, "word": "types" }, "word": "are" } ], "generatedParenthesized": [ "((((the (types)) of (food)) are (((nuggets), ((chicken) (strips)), ((chicken) (nuggets)), (sushis), (fries), (meats), (fruits), (pies), (salads), (sandwiches), (vegetables), (breads), (grains) and (cheeses)))))" ], "metadata": { "opChoices": [ { "counter": 1, "op": [ "type", 0 ], "ops": [ [ "food", 0 ], [ "is", 0 ], [ "propertyOf", 0 ], [ "the", 0 ], [ "type", 0 ], [ "what", 0 ] ] }, { "counter": 2, "op": [ "food", 0 ], "ops": [ [ "food", 0 ], [ "is", 0 ], [ "propertyOf", 0 ], [ "the", 0 ], [ "what", 0 ] ] }, { "counter": 3, "op": [ "what", 0 ], "ops": [ [ "is", 0 ], [ "propertyOf", 0 ], [ "the", 0 ], [ "what", 0 ] ] }, { "counter": 4, "op": [ "the", 0 ], "ops": [ [ "is", 0 ], [ "propertyOf", 0 ], [ "the", 0 ] ] }, { "counter": 5, "op": [ "propertyOf", 0 ], "ops": [ [ "is", 0 ], [ "propertyOf", 0 ] ] }, { "counter": 6, "op": [ "propertyOf", 1 ], "ops": [ [ "is", 0 ], [ "propertyOf", 1 ] ] }, { "counter": 7, "op": [ "is", 0 ], "ops": [ [ "is", 0 ] ] }, { "counter": 8, "op": [ "is", 1 ], "ops": [ [ "is", 1 ] ] } ] }, "objects": { "nameToUUID": { "articles": "articles2", "asking": "asking2", "concept": "concept2", "conjunction": "conjunction2", "countable": "countable2", "dialogues": "dialogues2", "edible": "edible1", "evaluate": "evaluate2", "gdefaults": "gdefaults2", "hierarchy": "hierarchy2", "meta": "meta2", "negation": "negation2", "numbers": "numbers2", "pos": "pos2", "properties": "properties2", "punctuation": "punctuation2", "sdefaults": "sdefaults2", "stm": "stm2", "tokenize": "tokenize2" }, "namespaced": { "articles2": { }, "asking2": { }, "concept2": { "defaultTypesForHierarchy": { }, "valueToWords": [ ] }, "conjunction2": { }, "countable2": { }, "dialogues2": { "idSuffix": "", "mentioned": [ ], "variables": { } }, "edible1": { }, "evaluate2": { }, "gdefaults2": { }, "hierarchy2": { }, "meta2": { }, "negation2": { }, "numbers2": { }, "pos2": { }, "properties2": { "children": { "adjective": [ "stm_before" ], "article": [ "a", "the", "each", "every" ], "bread": [ "muffin", "french_toast", "pancake" ], "canBeDoQuestion": [ "have" ], "canBeQuestion": [ "have", "is" ], "cereal_grain": [ "oatmeal" ], "cheese": [ "cheddar" ], "drink": [ "milk", "pop", "soda", "coffee", "tea", "shake", "juice", "lemonade" ], "edible": [ "food", "drink" ], "food": [ "nugget", "chicken_strip", "chicken_nugget", "sushi", "fry", "meat", "fruit", "pie", "salad", "sandwich", "vegetable", "bread", "grain", "cheese" ], "fruit": [ "apple", "orange", "banana" ], "hamburger": [ "cheeseburger" ], "hierarchyAble": [ "unknown" ], "ifAble": [ "orAble" ], "meat": [ "sausage" ], "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" ], "sandwich": [ "hamburger" ], "sausage": [ "hot_dog" ], "theAble": [ "property", "object", "concept", "unknown", "reason", "memorable", "noun" ], "thisitthat": [ "it", "this", "that" ], "toAble": [ "it" ], "vegetable": [ "carrot", "pea", "cabbage", "potato", "broccoli" ], "verb": [ "modifies", "is", "remember", "evaluate" ] }, "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", "food", "edible", "drink", "nugget", "chicken_strip", "chicken_nugget", "sushi", "apple", "fruit", "orange", "banana", "hot_dog", "sausage", "meat", "fry", "pie", "salad", "sandwich", "carrot", "vegetable", "pea", "cabbage", "potato", "broccoli", "bread", "muffin", "french_toast", "pancake", "grain", "oatmeal", "cereal_grain", "hamburger", "cheeseburger", "cheese", "cheddar", "milk", "pop", "soda", "coffee", "tea", "shake", "juice", "lemonade" ], "parents": { "a": [ "article" ], "apple": [ "fruit" ], "banana": [ "fruit" ], "between": [ "preposition" ], "bread": [ "food" ], "broccoli": [ "vegetable" ], "cabbage": [ "vegetable" ], "carrot": [ "vegetable" ], "cheddar": [ "cheese" ], "cheese": [ "food" ], "cheeseburger": [ "hamburger" ], "chicken_nugget": [ "food" ], "chicken_strip": [ "food" ], "coffee": [ "drink" ], "concept": [ "theAble", "queryable" ], "distributable": [ "queryable" ], "doubleQuote": [ "queryable" ], "drink": [ "edible" ], "each": [ "article" ], "evaluate": [ "verb" ], "every": [ "article" ], "food": [ "edible" ], "french_toast": [ "bread" ], "fruit": [ "food" ], "fry": [ "food" ], "grain": [ "food" ], "hamburger": [ "sandwich" ], "have": [ "canBeDoQuestion", "canBeQuestion" ], "hierarchyAble": [ "queryable" ], "hot_dog": [ "sausage" ], "is": [ "canBeQuestion", "verb" ], "it": [ "pronoun", "queryable", "toAble", "thisitthat" ], "juice": [ "drink" ], "lemonade": [ "drink" ], "meat": [ "food" ], "memorable": [ "theAble" ], "milk": [ "drink" ], "modifies": [ "verb" ], "muffin": [ "bread" ], "negatable": [ "queryable" ], "noun": [ "theAble" ], "nugget": [ "food" ], "oatmeal": [ "cereal_grain" ], "object": [ "queryable", "theAble" ], "orAble": [ "ifAble" ], "orange": [ "fruit" ], "pancake": [ "bread" ], "pea": [ "vegetable" ], "pie": [ "food" ], "pop": [ "drink" ], "potato": [ "vegetable" ], "property": [ "queryable", "theAble" ], "propertyOf": [ "preposition" ], "questionMark": [ "punctuation" ], "readonly": [ "queryable" ], "reason": [ "theAble", "queryable" ], "remember": [ "verb" ], "salad": [ "food" ], "sandwich": [ "food" ], "sausage": [ "meat" ], "shake": [ "drink" ], "soda": [ "drink" ], "stm_before": [ "adjective" ], "sushi": [ "food" ], "tea": [ "drink" ], "that": [ "thisitthat" ], "the": [ "article" ], "theAble": [ "queryable" ], "this": [ "pronoun", "queryable", "thisitthat" ], "thisitthat": [ "queryable" ], "to": [ "preposition" ], "unknown": [ "hierarchyAble", "theAble", "queryable" ], "vegetable": [ "food" ], "what": [ "object", "queryable" ], "whatAble": [ "queryable" ], "whose": [ "object" ], "xfx": [ "queryable" ] }, "properties": { "handlers": { }, "initHandlers": [ ], "root": { "a": { }, "adjective": { }, "apple": { }, "article": { }, "banana": { }, "between": { }, "bread": { }, "broccoli": { }, "cabbage": { }, "canBeDoQuestion": { }, "canBeQuestion": { }, "carrot": { }, "cereal_grain": { }, "cheddar": { }, "cheese": { }, "cheeseburger": { }, "chicken_nugget": { }, "chicken_strip": { }, "coffee": { }, "concept": { }, "distributable": { }, "doubleQuote": { }, "drink": { }, "each": { }, "edible": { }, "evaluate": { }, "every": { }, "food": { }, "french_toast": { }, "fruit": { }, "fry": { }, "grain": { }, "hamburger": { }, "have": { }, "hierarchyAble": { }, "hot_dog": { }, "ifAble": { }, "is": { }, "it": { }, "juice": { }, "lemonade": { }, "meat": { }, "memorable": { }, "milk": { }, "modifies": { }, "muffin": { }, "negatable": { }, "noun": { }, "nugget": { }, "oatmeal": { }, "object": { }, "orAble": { }, "orange": { }, "pancake": { }, "pea": { }, "pie": { }, "pop": { }, "potato": { }, "preposition": { }, "pronoun": { }, "property": { }, "propertyOf": { }, "punctuation": { }, "queryable": { }, "questionMark": { }, "readonly": { }, "reason": { }, "remember": { }, "salad": { }, "sandwich": { }, "sausage": { }, "shake": { }, "soda": { }, "stm_before": { }, "sushi": { }, "tea": { }, "that": { }, "the": { }, "theAble": { }, "this": { }, "thisitthat": { }, "to": { }, "toAble": { }, "unknown": { }, "vegetable": { }, "verb": { }, "what": { }, "whatAble": { }, "whose": { }, "xfx": { } } }, "property": { }, "relations": [ ], "valueToWords": { } }, "punctuation2": { }, "sdefaults2": { }, "stm2": { "mentioned": [ ], "variables": { } }, "tokenize2": { } }, "processed": [ { "context": { "context_index": 1, "dead": true, "evalue": { "default": true, "focusable": [ "two", "one" ], "marker": "is", "number": "many", "one": { "concept": true, "dead": true, "default": true, "determiner": "the", "focusableForPhrase": true, "level": 1, "marker": "type", "modifiers": [ "determiner" ], "object": { "dead": true, "level": 1, "marker": "food", "number": "one", "range": { "end": 25, "start": 22 }, "text": "food", "types": [ "food" ], "value": "food", "word": "food" }, "objects": [ { "concept": true, "dead": true, "default": true, "determiner": "the", "focusableForPhrase": true, "level": 1, "marker": "type", "modifiers": [ "determiner" ], "pullFromContext": true, "range": { "end": 17, "start": 9 }, "text": "the types", "types": [ "type" ], "wantsValue": true, "word": "types" }, { "dead": true, "level": 1, "marker": "food", "number": "one", "range": { "end": 25, "start": 22 }, "text": "food", "types": [ "food" ], "value": "food", "word": "food" } ], "pullFromContext": true, "range": { "end": 25, "start": 9 }, "text": "the types of food", "types": [ "type" ], "wantsValue": true, "word": "types" }, "two": { "concept": true, "dead": true, "default": true, "determiner": "the", "evalue": { "marker": "list", "value": [ { "marker": "nugget", "number": "many", "paraphrase": true, "value": "nugget", "word": "nuggets" }, { "chicken": { "marker": "chicken", "value": "chicken", "word": "chicken" }, "marker": "chicken_strip", "modifiers": [ "chicken" ], "paraphrase": true, "types": [ "chicken_strip" ], "value": "chicken_strip", "word": "strips" }, { "chicken": { "marker": "chicken", "value": "chicken", "word": "chicken" }, "marker": "chicken_nugget", "modifiers": [ "chicken" ], "paraphrase": true, "types": [ "chicken_nugget" ], "value": "chicken_nugget", "word": "nuggets" }, { "marker": "sushi", "number": "many", "paraphrase": true, "value": "sushi", "word": "sushis" }, { "marker": "fry", "number": "many", "paraphrase": true, "value": "fry", "word": "fries" }, { "marker": "meat", "number": "many", "paraphrase": true, "value": "meat", "word": "meats" }, { "marker": "fruit", "number": "many", "paraphrase": true, "value": "fruit", "word": "fruits" }, { "marker": "pie", "number": "many", "paraphrase": true, "value": "pie", "word": "pies" }, { "marker": "salad", "number": "many", "paraphrase": true, "value": "salad", "word": "salads" }, { "marker": "sandwich", "number": "many", "paraphrase": true, "value": "sandwich", "word": "sandwiches" }, { "marker": "vegetable", "number": "many", "paraphrase": true, "value": "vegetable", "word": "vegetables" }, { "marker": "bread", "number": "many", "paraphrase": true, "value": "bread", "word": "breads" }, { "marker": "grain", "number": "many", "paraphrase": true, "value": "grain", "word": "grains" }, { "marker": "cheese", "number": "many", "paraphrase": true, "value": "cheese", "word": "cheeses" } ] }, "focus": true, "focusableForPhrase": true, "instance": true, "level": 1, "marker": "type", "modifiers": [ "determiner" ], "number": "many", "object": { "dead": true, "level": 1, "marker": "food", "number": "one", "range": { "end": 25, "start": 22 }, "text": "food", "types": [ "food" ], "value": "food", "word": "food" }, "objects": [ { "concept": true, "dead": true, "default": true, "determiner": "the", "focusableForPhrase": true, "level": 1, "marker": "type", "modifiers": [ "determiner" ], "pullFromContext": true, "range": { "end": 17, "start": 9 }, "text": "the types", "types": [ "type" ], "wantsValue": true, "word": "types" }, { "dead": true, "level": 1, "marker": "food", "number": "one", "range": { "end": 25, "start": 22 }, "text": "food", "types": [ "food" ], "value": "food", "word": "food" } ], "pullFromContext": true, "range": { "end": 25, "start": 9 }, "text": "the types of food", "touchedBy": [ "edible#call3", "edible#call2" ], "types": [ "type" ], "wantsValue": true, "word": "types" }, "word": "are" }, "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": 25, "start": 0 }, "text": "what", "types": [ "what" ], "value": "what", "word": "what" }, "query": [ "what" ], "range": { "end": 25, "start": 0 }, "text": "what are the types of food", "topLevel": true, "touchedBy": [ "edible#call2" ], "two": { "concept": true, "dead": true, "default": true, "determiner": "the", "focusableForPhrase": true, "level": 1, "marker": "type", "modifiers": [ "determiner" ], "object": { "dead": true, "level": 1, "marker": "food", "number": "one", "range": { "end": 25, "start": 22 }, "text": "food", "types": [ "food" ], "value": "food", "word": "food" }, "objects": [ { "concept": true, "dead": true, "default": true, "determiner": "the", "focusableForPhrase": true, "level": 1, "marker": "type", "modifiers": [ "determiner" ], "pullFromContext": true, "range": { "end": 17, "start": 9 }, "text": "the types", "types": [ "type" ], "wantsValue": true, "word": "types" }, { "dead": true, "level": 1, "marker": "food", "number": "one", "range": { "end": 25, "start": 22 }, "text": "food", "types": [ "food" ], "value": "food", "word": "food" } ], "pullFromContext": true, "range": { "end": 25, "start": 9 }, "text": "the types of food", "types": [ "type" ], "wantsValue": true, "word": "types" }, "word": "are" }, "generatedParenthesized": "((((the (types)) of (food)) are (((nuggets), ((chicken) (strips)), ((chicken) (nuggets)), (sushis), (fries), (meats), (fruits), (pies), (salads), (sandwiches), (vegetables), (breads), (grains) and (cheeses)))))", "paraphrases": "what are the types of food?", "paraphrasesParenthesized": "(((what) are ((the (types)) of (food)))?)", "responses": [ "the types of food are nuggets, chicken strips, chicken nuggets, sushis, fries, meats, fruits, pies, salads, sandwiches, vegetables, breads, grains and cheeses" ] }, { "context": { "context_index": 1, "dead": true, "level": 2, "marker": "is", "number": "one", "one": { "dead": true, "level": 1, "marker": "unknown", "number": "one", "range": { "end": 18, "start": 0 }, "text": "lemonade", "types": [ "unknown" ], "unknown": true, "value": "lemonade", "word": "lemonade" }, "range": { "end": 18, "start": 0 }, "text": "lemonade is a drink", "topLevel": true, "touchedBy": [ "edible#call2", "instance31#edible#call2" ], "two": { "concept": true, "dead": true, "determiner": { "default": true, "level": 0, "marker": "a", "range": { "end": 12, "start": 12 }, "text": "a", "word": "a" }, "instance": true, "level": 1, "marker": "drink", "modifiers": [ "determiner" ], "number": "one", "pullFromContext": false, "range": { "end": 18, "start": 12 }, "text": "a drink", "types": [ "drink" ], "value": "drink", "wantsValue": true, "word": "drink" }, "word": "is" }, "generatedParenthesized": [ ], "paraphrases": "lemonade is a drink", "paraphrasesParenthesized": [ ], "responses": [ "" ] }, { "context": { "concept": { "dead": true, "level": 1, "marker": "milk", "number": "one", "range": { "end": 22, "start": 19 }, "text": "milk", "value": "milk", "word": "milk" }, "context_index": 1, "dead": true, "flatten": false, "level": 1, "marker": "modifies", "modifiers": [ { "dead": true, "level": 1, "marker": "unknown", "range": { "end": 8, "start": 0 }, "text": "chocolate", "unknown": true, "value": "chocolate", "word": "chocolate" } ], "number": "one", "range": { "end": 22, "start": 0 }, "text": "chocolate modifies milk", "topLevel": true, "touchedBy": [ "edible#call2", "instance30#edible#call2" ], "word": "modifies" }, "generatedParenthesized": [ ], "paraphrases": "chocolate modifies milk", "paraphrasesParenthesized": [ ], "responses": [ "" ] }, { "context": { "concept": { "dead": true, "level": 1, "marker": "juice", "number": "one", "range": { "end": 19, "start": 15 }, "text": "juice", "value": "juice",