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

25
LINES

< > BotCompany Repo | #1021446 // dm_gazelle_appliedRulesForLearning

JavaX fragment (include)

scope dm_gazelle_appliedRulesForLearning.

please include function javaTokNPunctuationWithBrackets.
please include function javaTokNoQuotes.
please include function javaTokNoQuotesWithBrackets.

sclass #Entry {
  RuleEngine2_MatchedRule r;
  S ruleID;
  S judgement;
}

static L<Entry> dm_gazelle_appliedRulesForLearning() {
  L concepts = cloneList((L) dm_requireAndCall("#1021413/AppliedRules", 'concepts));
  new L<Entry> out;
  for (O c : concepts) pcall {
    S judgement = getString judgement(c);
    S struct = getString matchedRuleStruct(c);
    RuleEngine2_MatchedRule r = cast unstruct(struct);
    out.add(nu(Entry, +r, ruleID := r.rule.globalID, +judgement));
  }
  ret out;
}

end scope

Author comment

Began life as a copy of #1021432

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021446
Snippet name: dm_gazelle_appliedRulesForLearning
Eternal ID of this version: #1021446/5
Text MD5: 0bccb65e1e73480ba39aa9347f100f08
Author: stefan
Category: javax / stefan's os / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-02 18:18:46
Source code size: 723 bytes / 25 lines
Pitched / IR pitched: No / No
Views / Downloads: 214 / 267
Version history: 4 change(s)
Referenced in: [show references]