1 | scope dm_gazelle_appliedRulesForLearning. |
2 | |
3 | please include function javaTokNPunctuationWithBrackets. |
4 | please include function javaTokNoQuotes. |
5 | please include function javaTokNoQuotesWithBrackets. |
6 | |
7 | sclass #Entry { |
8 | RuleEngine2_MatchedRule r; |
9 | S ruleID; |
10 | S judgement; |
11 | } |
12 | |
13 | static L<Entry> dm_gazelle_appliedRulesForLearning() { |
14 | L concepts = cloneList((L) dm_requireAndCall("#1021413/AppliedRules", 'concepts)); |
15 | new L<Entry> out; |
16 | for (O c : concepts) pcall { |
17 | S judgement = getString judgement(c); |
18 | S struct = getString matchedRuleStruct(c); |
19 | RuleEngine2_MatchedRule r = cast unstruct(struct); |
20 | out.add(nu(Entry, +r, ruleID := r.rule.globalID, +judgement)); |
21 | } |
22 | ret out; |
23 | } |
24 | |
25 | end scope |
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: | 299 / 339 |
Version history: | 4 change(s) |
Referenced in: | [show references] |