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

17
LINES

< > BotCompany Repo | #1018077 // Test generating question after rule fail (OK)

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

Download Jar. Libraryless. Click here for Pure Java version (15655L/116K).

!7

p-exp {
  RuleFailInfo fail = first(nlLogic_ruleFails(nlLogicCheckerWithStandardFactsPlus("i saw a kid eat grass"), ll(ai_getRule('zrpcdxxfqzgdkzof))));
  print(fail);
  
  //set nlLogic_unresolvedFactsToQuestions_debug;
  //set ai_deriveOutput_debug;
  //NLLogicChecker_v2.staticVerbose = true;
  
  Collection<S> questions = nlLogic_unresolvedFactsToQuestions(fail);
  print();
  pnl(questions);
  print();
  
  assertTrueVerbose(nempty(questions));
}

Author comment

Began life as a copy of #1018074

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1018077
Snippet name: Test generating question after rule fail (OK)
Eternal ID of this version: #1018077/10
Text MD5: bb146db13926a4c5cd62510f5658d158
Transpilation MD5: a0d157c79860ee2df9ffe23804a4da40
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-08-29 15:56:40
Source code size: 473 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 259 / 728
Version history: 9 change(s)
Referenced in: [show references]