UNPKG

tpmkms

Version:

Reusable libraries for Entodicton, a natural language to json converter

874 lines 26.6 kB
[ { "associations": [ [ [ "help", 0 ], [ "km", 0 ], [ "list", 0 ], [ "withKM", 0 ] ], [ [ "help", 0 ], [ "list", 0 ], [ "withKM", 0 ] ], [ [ "help", 0 ], [ "list", 1 ], [ "withKM", 0 ] ] ], "config": { }, "contexts": [ { "context_id": 2, "context_index": 1, "dead": true, "default": true, "isResponse": true, "kms": { "default": true, "isList": true, "level": 1, "listable": true, "marker": "list", "range": { "end": 27, "start": 10 }, "text": "help and dialogues", "types": [ "km", "list" ], "value": [ { "dead": true, "level": 1, "marker": "km", "range": { "end": 13, "start": 10 }, "text": "help", "types": [ "km" ], "value": "help", "word": "help" }, { "dead": true, "level": 1, "marker": "km", "range": { "end": 27, "start": 19 }, "text": "dialogues", "types": [ "km" ], "value": "dialogues", "word": "dialogues" } ], "word": "and" }, "level": 1, "marker": "help", "range": { "end": 27, "start": 0 }, "text": "help with help and dialogues", "topLevel": true, "value": "help", "word": "help" } ], "generatedParenthesized": [ "( NAME: help\n DESCRIPTION: Help the user with the current knowledge modules\n\n SAMPLE SENTENCES\n\n help with help and dialogues\n help\n\n NAME: dialogues\n DESCRIPTION: framework for dialogues\n\n SAMPLE SENTENCES\n\n 1 2 and 3\n be brief\n be brief greg\n is x y\n no\n what is it\n x is y?\n yes\n x is 3 what is x\n x is 3 what is x what is it\n be brief x is 3 what is x what is it\n to it\n why\n setidsuffix greg\n setidsuffix greg resetidsuffix\n setidsuffix greg makeObject banana\\nbanana\n setidsuffix _suffy\n)" ], "metadata": { "opChoices": [ { "counter": 1, "op": [ "km", 0 ], "ops": [ [ "help", 0 ], [ "km", 0 ], [ "km", 0 ], [ "list", 0 ], [ "withKM", 0 ] ] }, { "counter": 2, "op": [ "km", 0 ], "ops": [ [ "help", 0 ], [ "km", 0 ], [ "list", 0 ], [ "withKM", 0 ] ] }, { "counter": 3, "op": [ "list", 0 ], "ops": [ [ "help", 0 ], [ "list", 0 ], [ "withKM", 0 ] ] }, { "counter": 4, "op": [ "withKM", 0 ], "ops": [ [ "help", 0 ], [ "withKM", 0 ] ] }, { "counter": 5, "op": [ "help", 0 ], "ops": [ [ "help", 0 ] ] } ] }, "objects": { "associations": [ ], "nameToUUID": { "articles": "articles2", "asking": "asking2", "conjunction": "conjunction2", "control": "control2", "dialogues": "dialogues2", "evaluate": "evaluate2", "gdefaults": "gdefaults2", "help": "help1", "logging": "logging2", "meta": "meta2", "negation": "negation2", "pos": "pos2", "punctuation": "punctuation2", "sdefaults": "sdefaults2", "stm": "stm2", "tokenize": "tokenize2", "words": "words2" }, "namespaced": { "articles2": { "km": "articles2" }, "asking2": { "km": "asking2" }, "conjunction2": { "km": "conjunction2" }, "control2": { "km": "control2" }, "dialogues2": { "idSuffix": "", "km": "dialogues2", "mentioned": [ ], "variables": { } }, "evaluate2": { "km": "evaluate2" }, "gdefaults2": { "km": "gdefaults2" }, "help1": { "km": "help1" }, "logging2": { "km": "logging2", "messages": [ ] }, "meta2": { "km": "meta2" }, "negation2": { "km": "negation2" }, "pos2": { "km": "pos2" }, "punctuation2": { "km": "punctuation2" }, "sdefaults2": { "km": "sdefaults2" }, "stm2": { "km": "stm2", "mentioned": [ ], "variables": { } }, "tokenize2": { "km": "tokenize2" }, "words2": { "km": "words2", "words": [ ] } }, "processed": [ { "context": { "context_id": 2, "context_index": 1, "dead": true, "default": true, "isResponse": true, "kms": { "default": true, "isList": true, "level": 1, "listable": true, "marker": "list", "range": { "end": 27, "start": 10 }, "text": "help and dialogues", "types": [ "km", "list" ], "value": [ { "dead": true, "level": 1, "marker": "km", "range": { "end": 13, "start": 10 }, "text": "help", "types": [ "km" ], "value": "help", "word": "help" }, { "dead": true, "level": 1, "marker": "km", "range": { "end": 27, "start": 19 }, "text": "dialogues", "types": [ "km" ], "value": "dialogues", "word": "dialogues" } ], "word": "and" }, "level": 1, "marker": "help", "range": { "end": 27, "start": 0 }, "text": "help with help and dialogues", "topLevel": true, "value": "help", "word": "help" }, "generatedParenthesized": [ ], "paraphrases": [ ], "paraphrasesParenthesized": [ ], "responses": [ " NAME: help\n DESCRIPTION: Help the user with the current knowledge modules\n\n SAMPLE SENTENCES\n\n help with help and dialogues\n help\n\n NAME: dialogues\n DESCRIPTION: framework for dialogues\n\n SAMPLE SENTENCES\n\n 1 2 and 3\n be brief\n be brief greg\n is x y\n no\n what is it\n x is y?\n yes\n x is 3 what is x\n x is 3 what is x what is it\n be brief x is 3 what is x what is it\n to it\n why\n setidsuffix greg\n setidsuffix greg resetidsuffix\n setidsuffix greg makeObject banana\\nbanana\n setidsuffix _suffy\n" ] } ] }, "paraphrases": [ "help" ], "paraphrasesParenthesized": [ "(help)" ], "query": "help with help and dialogues", "responses": [ " NAME: help\n DESCRIPTION: Help the user with the current knowledge modules\n\n SAMPLE SENTENCES\n\n help with help and dialogues\n help\n\n NAME: dialogues\n DESCRIPTION: framework for dialogues\n\n SAMPLE SENTENCES\n\n 1 2 and 3\n be brief\n be brief greg\n is x y\n no\n what is it\n x is y?\n yes\n x is 3 what is x\n x is 3 what is x what is it\n be brief x is 3 what is x what is it\n to it\n why\n setidsuffix greg\n setidsuffix greg resetidsuffix\n setidsuffix greg makeObject banana\\nbanana\n setidsuffix _suffy\n" ], "summaries": [ { "length": 1, "summaries": [ { "counter": 1, "operators": [ { "marker": [ "help", 0 ], "range": { "end": 3, "start": 0 } }, { "marker": [ "withKM", 0 ], "range": { "end": 8, "start": 5 } }, { "marker": [ "km", 0 ], "range": { "end": 13, "start": 10 } }, { "marker": [ "list", 0 ], "range": { "end": 17, "start": 15 } }, { "marker": [ "km", 0 ], "range": { "end": 27, "start": 19 } } ] }, { "counter": 2, "operators": [ { "marker": [ "help", 0 ], "range": { "end": 3, "start": 0 } }, { "marker": [ "withKM", 0 ], "range": { "end": 8, "start": 5 } }, { "marker": [ "km", 1 ], "range": { "end": 13, "start": 10 } }, { "marker": [ "list", 0 ], "range": { "end": 17, "start": 15 } }, { "marker": [ "km", 0 ], "range": { "end": 27, "start": 19 } } ] }, { "counter": 3, "operators": [ { "marker": [ "help", 0 ], "range": { "end": 3, "start": 0 } }, { "marker": [ "withKM", 0 ], "range": { "end": 8, "start": 5 } }, { "marker": [ "km", 1 ], "range": { "end": 13, "start": 10 } }, { "marker": [ "list", 0 ], "range": { "end": 17, "start": 15 } }, { "marker": [ "km", 1 ], "range": { "end": 27, "start": 19 } } ] }, { "counter": 4, "operators": [ { "marker": [ "help", 0 ], "range": { "end": 3, "start": 0 } }, { "marker": [ "withKM", 0 ], "range": { "end": 8, "start": 5 } }, { "marker": [ "list", 1 ], "range": { "end": 27, "start": 10 } } ] }, { "counter": 5, "operators": [ { "marker": [ "help", 0 ], "range": { "end": 3, "start": 0 } }, { "marker": [ "withKM", 1 ], "range": { "end": 27, "start": 5 } } ] }, { "counter": 6, "operators": [ { "marker": [ "help", 1 ], "range": { "end": 27, "start": 0 } } ] } ] } ] }, { "associations": [ ], "config": { }, "contexts": [ { "context_id": 2, "context_index": 1, "dead": true, "default": true, "isResponse": true, "kms": [ ], "level": 1, "marker": "help", "range": { "end": 3, "start": 0 }, "text": "help", "topLevel": true, "value": "help", "word": "help" } ], "generatedParenthesized": [ "( NAME: help\n DESCRIPTION: Help the user with the current knowledge modules\n\n SAMPLE SENTENCES\n\n help with help and dialogues\n help\n\n NAME: dialogues\n DESCRIPTION: framework for dialogues\n\n SAMPLE SENTENCES\n\n 1 2 and 3\n be brief\n be brief greg\n is x y\n no\n what is it\n x is y?\n yes\n x is 3 what is x\n x is 3 what is x what is it\n be brief x is 3 what is x what is it\n to it\n why\n setidsuffix greg\n setidsuffix greg resetidsuffix\n setidsuffix greg makeObject banana\\nbanana\n setidsuffix _suffy\n\n NAME: asking\n DESCRIPTION: asking the user questions\n\n SAMPLE SENTENCES\n\n nevermindTestSetup accept nevermind hi\n nevermindTestSetup reject nevermind hi\n whichOnesTestSetup apple banana pear\\npear\n whichOnesTestSetup apple banana pear\\ngoat\n whichOnesTestSetup apple banana pear\\nnevermind\n whichOnesTestSetup apple banana pear\\napple and pear\n\n NAME: negation\n DESCRIPTION: negation\n\n SAMPLE SENTENCES\n\n not negatable\n not negatables\n\n NAME: meta\n DESCRIPTION: Ways of defining new language elements\n\n SAMPLE SENTENCES\n\n a means b\n a means x\n if f then g gq\n undefined means defined\n\n NAME: conjunction\n DESCRIPTION: framework for conjunction\n\n SAMPLE SENTENCES\n\n 1 2 and 3\n\n\n NAME: stm\n DESCRIPTION: short term memory\n\n SAMPLE SENTENCES\n\n remember m1\n previous memorable\n m1\n remember m1\\nevaluate the memorable\n the memorable before\n remember m1\\nremember m2\\nevaluate the memorable before\n delete deletable\n remember m1\\ndelete m1\n remember m1\\nrecall m1\n recall m1\n remember m1\\ndelete m1\\nrecall m1\n remember m1\\nforget m1\\nrecall m1\n\n\n NAME: evaluate\n DESCRIPTION: Explicit handling of evaluate\n\n SAMPLE SENTENCES\n\n evaluate value1\n\n NAME: articles\n DESCRIPTION: articles\n\n SAMPLE SENTENCES\n\n the theable\n a theable\n every distributable\n each distributable\n this theable\n this\n this thisable\n that thisable\n that\n\n\n NAME: punctuation\n DESCRIPTION: punctuation\n\n SAMPLE SENTENCES\n\n (a)\n :\n \"hi man\"\n\n\n\n NAME: tokenize\n DESCRIPTION: tokenize\n\n SAMPLE SENTENCES\n\n hello_world\n\n)" ], "metadata": { "opChoices": [ { "counter": 1, "op": [ "help", 0 ], "ops": [ [ "help", 0 ] ] } ] }, "objects": { "associations": [ ], "nameToUUID": { "articles": "articles2", "asking": "asking2", "conjunction": "conjunction2", "control": "control2", "dialogues": "dialogues2", "evaluate": "evaluate2", "gdefaults": "gdefaults2", "help": "help1", "logging": "logging2", "meta": "meta2", "negation": "negation2", "pos": "pos2", "punctuation": "punctuation2", "sdefaults": "sdefaults2", "stm": "stm2", "tokenize": "tokenize2", "words": "words2" }, "namespaced": { "articles2": { "km": "articles2" }, "asking2": { "km": "asking2" }, "conjunction2": { "km": "conjunction2" }, "control2": { "km": "control2" }, "dialogues2": { "idSuffix": "", "km": "dialogues2", "mentioned": [ ], "variables": { } }, "evaluate2": { "km": "evaluate2" }, "gdefaults2": { "km": "gdefaults2" }, "help1": { "km": "help1" }, "logging2": { "km": "logging2", "messages": [ ] }, "meta2": { "km": "meta2" }, "negation2": { "km": "negation2" }, "pos2": { "km": "pos2" }, "punctuation2": { "km": "punctuation2" }, "sdefaults2": { "km": "sdefaults2" }, "stm2": { "km": "stm2", "mentioned": [ ], "variables": { } }, "tokenize2": { "km": "tokenize2" }, "words2": { "km": "words2", "words": [ ] } }, "processed": [ { "context": { "context_id": 2, "context_index": 1, "dead": true, "default": true, "isResponse": true, "kms": [ ], "level": 1, "marker": "help", "range": { "end": 3, "start": 0 }, "text": "help", "topLevel": true, "value": "help", "word": "help" }, "generatedParenthesized": [ ], "paraphrases": [ ], "paraphrasesParenthesized": [ ], "responses": [ " NAME: help\n DESCRIPTION: Help the user with the current knowledge modules\n\n SAMPLE SENTENCES\n\n help with help and dialogues\n help\n\n NAME: dialogues\n DESCRIPTION: framework for dialogues\n\n SAMPLE SENTENCES\n\n 1 2 and 3\n be brief\n be brief greg\n is x y\n no\n what is it\n x is y?\n yes\n x is 3 what is x\n x is 3 what is x what is it\n be brief x is 3 what is x what is it\n to it\n why\n setidsuffix greg\n setidsuffix greg resetidsuffix\n setidsuffix greg makeObject banana\\nbanana\n setidsuffix _suffy\n\n NAME: asking\n DESCRIPTION: asking the user questions\n\n SAMPLE SENTENCES\n\n nevermindTestSetup accept nevermind hi\n nevermindTestSetup reject nevermind hi\n whichOnesTestSetup apple banana pear\\npear\n whichOnesTestSetup apple banana pear\\ngoat\n whichOnesTestSetup apple banana pear\\nnevermind\n whichOnesTestSetup apple banana pear\\napple and pear\n\n NAME: negation\n DESCRIPTION: negation\n\n SAMPLE SENTENCES\n\n not negatable\n not negatables\n\n NAME: meta\n DESCRIPTION: Ways of defining new language elements\n\n SAMPLE SENTENCES\n\n a means b\n a means x\n if f then g gq\n undefined means defined\n\n NAME: conjunction\n DESCRIPTION: framework for conjunction\n\n SAMPLE SENTENCES\n\n 1 2 and 3\n\n\n NAME: stm\n DESCRIPTION: short term memory\n\n SAMPLE SENTENCES\n\n remember m1\n previous memorable\n m1\n remember m1\\nevaluate the memorable\n the memorable before\n remember m1\\nremember m2\\nevaluate the memorable before\n delete deletable\n remember m1\\ndelete m1\n remember m1\\nrecall m1\n recall m1\n remember m1\\ndelete m1\\nrecall m1\n remember m1\\nforget m1\\nrecall m1\n\n\n NAME: evaluate\n DESCRIPTION: Explicit handling of evaluate\n\n SAMPLE SENTENCES\n\n evaluate value1\n\n NAME: articles\n DESCRIPTION: articles\n\n SAMPLE SENTENCES\n\n the theable\n a theable\n every distributable\n each distributable\n this theable\n this\n this thisable\n that thisable\n that\n\n\n NAME: punctuation\n DESCRIPTION: punctuation\n\n SAMPLE SENTENCES\n\n (a)\n :\n \"hi man\"\n\n\n\n NAME: tokenize\n DESCRIPTION: tokenize\n\n SAMPLE SENTENCES\n\n hello_world\n\n" ] } ] }, "paraphrases": [ "help" ], "paraphrasesParenthesized": [ "(help)" ], "query": "help", "responses": [ " NAME: help\n DESCRIPTION: Help the user with the current knowledge modules\n\n SAMPLE SENTENCES\n\n help with help and dialogues\n help\n\n NAME: dialogues\n DESCRIPTION: framework for dialogues\n\n SAMPLE SENTENCES\n\n 1 2 and 3\n be brief\n be brief greg\n is x y\n no\n what is it\n x is y?\n yes\n x is 3 what is x\n x is 3 what is x what is it\n be brief x is 3 what is x what is it\n to it\n why\n setidsuffix greg\n setidsuffix greg resetidsuffix\n setidsuffix greg makeObject banana\\nbanana\n setidsuffix _suffy\n\n NAME: asking\n DESCRIPTION: asking the user questions\n\n SAMPLE SENTENCES\n\n nevermindTestSetup accept nevermind hi\n nevermindTestSetup reject nevermind hi\n whichOnesTestSetup apple banana pear\\npear\n whichOnesTestSetup apple banana pear\\ngoat\n whichOnesTestSetup apple banana pear\\nnevermind\n whichOnesTestSetup apple banana pear\\napple and pear\n\n NAME: negation\n DESCRIPTION: negation\n\n SAMPLE SENTENCES\n\n not negatable\n not negatables\n\n NAME: meta\n DESCRIPTION: Ways of defining new language elements\n\n SAMPLE SENTENCES\n\n a means b\n a means x\n if f then g gq\n undefined means defined\n\n NAME: conjunction\n DESCRIPTION: framework for conjunction\n\n SAMPLE SENTENCES\n\n 1 2 and 3\n\n\n NAME: stm\n DESCRIPTION: short term memory\n\n SAMPLE SENTENCES\n\n remember m1\n previous memorable\n m1\n remember m1\\nevaluate the memorable\n the memorable before\n remember m1\\nremember m2\\nevaluate the memorable before\n delete deletable\n remember m1\\ndelete m1\n remember m1\\nrecall m1\n recall m1\n remember m1\\ndelete m1\\nrecall m1\n remember m1\\nforget m1\\nrecall m1\n\n\n NAME: evaluate\n DESCRIPTION: Explicit handling of evaluate\n\n SAMPLE SENTENCES\n\n evaluate value1\n\n NAME: articles\n DESCRIPTION: articles\n\n SAMPLE SENTENCES\n\n the theable\n a theable\n every distributable\n each distributable\n this theable\n this\n this thisable\n that thisable\n that\n\n\n NAME: punctuation\n DESCRIPTION: punctuation\n\n SAMPLE SENTENCES\n\n (a)\n :\n \"hi man\"\n\n\n\n NAME: tokenize\n DESCRIPTION: tokenize\n\n SAMPLE SENTENCES\n\n hello_world\n\n" ], "summaries": [ { "length": 1, "summaries": [ { "counter": 1, "operators": [ { "marker": [ "help", 0 ], "range": { "end": 3, "start": 0 } } ] }, { "counter": 2, "operators": [ { "marker": [ "help", 1 ], "range": { "end": 3, "start": 0 } } ] } ] } ] } ]