Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1017581 // Test NLLogicChecker_v1 (OK)

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (7150L/52K).

!7

p-exp {
  new NLLogicChecker_v1 c;
  c.facts.add("the opposite of old is new");
  c.input = "what is the opposite of old";
  
  NLLogicChecker_v1.Matching m = new NLLogicChecker_v1.Matching();
  print("checks out", c.checkRule(nlLogic_parseRule([[
    input(What is the opposite of old?)
    && fact(The opposite of old is new)
    => output(The opposite of old is new)
  ]]), m));
  pnlStruct(m.output);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017581
Snippet name: Test NLLogicChecker_v1 (OK)
Eternal ID of this version: #1017581/4
Text MD5: 824782963451514d3a94e25f1919497b
Transpilation MD5: 027370fe3762c4910e05b0943dba9010
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-28 11:58:15
Source code size: 424 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 412 / 1073
Version history: 3 change(s)
Referenced in: #1017588 - Test NLLogicChecker_v2 with vars (OK)