Commit Graph

252 Commits

Author SHA1 Message Date
Will Webberley
5ed7886e93 added support for modifying concepts with new values 2017-01-16 22:22:59 +00:00
Will Webberley
12ac2e6dd5 updated concept-parsing to use a unified approach in both creating and modifying concepts 2017-01-15 20:46:10 +00:00
Will Webberley
f090b875aa allow CEInstance and CEConcept constructors add themselves to the node's KB 2017-01-15 18:45:58 +00:00
Will Webberley
7e9cee3a4d improved stability in parsing instance facts and removed 'dryRun' mechanic 2017-01-15 18:34:43 +00:00
Will Webberley
0417d39d88 allow a CEInstance's #ce() function to report subConcepts 2017-01-15 10:49:54 +00:00
Will Webberley
36ec8c80b7 allow a CEInstance's #gist() function to report subConcepts 2017-01-14 20:32:04 +00:00
Will Webberley
9ffb996771 correctly parsing and adding new relationships 2017-01-14 19:58:36 +00:00
Will Webberley
86611ba13d correctly parsing and adding raw values and instance values 2017-01-14 19:27:47 +00:00
Will Webberley
1690ebbef3 correctly add synonyms and subconcepts to instances 2017-01-14 00:02:00 +00:00
Will Webberley
c0d8d4c938 code to extract raw vals now works 2017-01-13 23:43:29 +00:00
Will Webberley
372023e4d8 code to extract concept-vals now works 2017-01-13 23:40:51 +00:00
Will Webberley
a1310118dc code to extract subconcepts now works 2017-01-13 23:37:02 +00:00
Will Webberley
f1237be883 code to extract synonyms now works 2017-01-13 23:28:24 +00:00
Will Webberley
6d305de736 reg-ex detectors for each type of instance modification declared 2017-01-10 22:55:29 +00:00
Will Webberley
28d36630ea more specialised code in modifyInstance() to split out facts separated by 'and' symbols 2017-01-10 21:50:24 +00:00
Will Webberley
0536ea693b renamed license -> licence 2017-01-10 20:06:46 +00:00
Will Webberley
f8aa6a260c added test instructions to readme 2017-01-10 20:04:44 +00:00
Will Webberley
e81f7a2d69 allow subConcepts to be declared for existing instances 2017-01-10 19:55:13 +00:00
flyingsparx
190d3412a3 added all test cases to be passed in-line with CE-into slides 2017-01-10 18:34:27 +00:00
flyingsparx
81c727fe3f added a test framework 2017-01-10 18:04:16 +00:00
Will Webberley
1734d023ab fixed reference to legacy function call get_instances() 2017-01-05 21:50:42 +00:00
Will Webberley
33ed6ea06f refactored throughout to make lint tests pass 2017-01-05 21:47:54 +00:00
Will Webberley
0990bb013e added in Andy's fuzzy-searcher for 'What/Who is' questions 2017-01-05 21:32:21 +00:00
Will Webberley
074f12c0c8 sentences of form 'the person fred is married to the person jane' are now parsed correctly 2017-01-04 19:47:23 +00:00
Will Webberley
c9529ef9c1 separate CEParser functions for newInstance and modifyInstance 2017-01-04 18:59:06 +00:00
Will Webberley
7c6af583b1 moved the 'parse decision' logic from CENode to the relevant parsers 2017-01-04 18:24:39 +00:00
Will Webberley
cb7169b7de updated CEServer to require the models index file instead of directly 2016-12-23 22:19:59 +00:00
Will Webberley
ed2f1ffbe9 updated REAMDE to reflect latest changes 2016-12-23 22:10:10 +00:00
Will Webberley
edc63bbacb allow webpack to also process the pre-included models for use in web 2016-12-23 21:56:15 +00:00
Will Webberley
872fc75b58 updated README to reflect changes so far 2016-12-23 20:37:01 +00:00
Will Webberley
089690768a added uglifyjs to minify cenode.js (reduces footprint by nearly 50% currently) 2016-12-23 20:13:35 +00:00
Will Webberley
aeca4e4211 added webpack and configs to support building for the browser 2016-12-23 20:01:47 +00:00
Will Webberley
1bf3578438 created a RuleEngine class to handle all rule-parsing and propagation 2016-12-23 19:34:57 +00:00
Will Webberley
4611725fe9 moved the 'guessNext' function into NLParser as this seems more logical 2016-12-23 19:17:36 +00:00
Will Webberley
c4f4de09f3 ensure CEServer correctly attaches an agent to its node instance to handle card input/output 2016-12-23 19:02:58 +00:00
Will Webberley
9af8abcb3c renamed nowrite -> dryRun and removed explicit checks for 'null' throughout 2016-12-23 19:01:13 +00:00
Will Webberley
6687957025 fixed bugs that caused every CE-parse to be a dry-run 2016-12-23 18:40:53 +00:00
Will Webberley
320d5c46c1 CEServer.js now conforms to AirBnb lint tests 2016-12-22 23:22:49 +00:00
Will Webberley
7d55cff045 NLParser.js now conforms to AirBnb lint tests 2016-12-22 23:17:20 +00:00
Will Webberley
c22ed513cd QuestionParser.js now conforms to AirBnb lint tests 2016-12-22 23:14:55 +00:00
Will Webberley
cb4dcbfb95 CEParser.js now conforms to AirBnb lint tests 2016-12-22 23:07:16 +00:00
Will Webberley
9babfdf2ff CEAgent.js now conforms to AirBnb lint tests 2016-12-22 22:57:49 +00:00
Will Webberley
2f97b78c4a CEInstance.js now conforms to AirBnb lint tests 2016-12-22 22:30:21 +00:00
Will Webberley
48ce757df5 CEConcept.js now conforms to AirBnb lint tests 2016-12-22 21:02:55 +00:00
Will Webberley
ddda963d95 CENode.js now conforms to AirBnb lint tests 2016-12-22 20:57:17 +00:00
Will Webberley
b9371d8218 updated addSentence/addCE/addNL/askQuestion methods to be more logical and concise 2016-12-22 20:24:28 +00:00
Will Webberley
90f3e71d50 splitted out NL-parsing code into an NLParser class 2016-12-22 19:48:12 +00:00
Will Webberley
ba282ef8e2 By default CENode now instantiates without an agent. Agents must be attached after instantiation by calling 'attachAgent' 2016-12-22 19:36:07 +00:00
Will Webberley
0b41d9637d created a QuestionParser class and migrated question-answering code to this 2016-12-22 19:26:11 +00:00
Will Webberley
14bb3e35a7 created a 'CEParser' class to be directly responsible for all Node-based CE-parsing (splitted out code) 2016-12-22 19:05:18 +00:00