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

16
LINES

< > BotCompany Repo | #1018294 // Process Rules BB Spike [shortened, OK]

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

Download Jar. Libraryless. Click here for Pure Java version (16514L/123K).

!7

p-exp {
  L<IfThen> rules = ai_parseRulesWithMacros(mL_raw("Rules BB"));
  
  // Meta
  rules = nlLogic_applyMetaRules(rules);
  pnl(rules);
  
  // Concrete
  S input = "was kostet der eintritt yo";
  nlLogic_evalExp_verbose = false;
  temp tempSetTL(nlLogic_processInputOrFact_allowUnsafeEvals, true);
  L<ExecutedRule> results = nlLogic_processInputOrFact(input, false, pair(rules, (L<S>) null));
  pnl(nlLogic_outputFromExecutedRules(new LinkedHashSet, results));
}

Author comment

Began life as a copy of #1018285

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1018294
Snippet name: Process Rules BB Spike [shortened, OK]
Eternal ID of this version: #1018294/2
Text MD5: 260a7465f1aa9974dda8b0b771bf6c11
Transpilation MD5: 5086c85d7874df7c89156d813e3b92e2
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-09-16 12:31:29
Source code size: 488 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 318 / 731
Version history: 1 change(s)
Referenced in: [show references]