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

14
LINES

< > BotCompany Repo | #1027137 - dm_ai_groupingsToDeducedFactsMultiSet

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (8367L/53K).

// uses rules in unclear list "Rules"
static MultiSet<S> dm_ai_groupingsToDeducedFactsMultiSet(Cl<S> groupings) {
  S rules = joinWithEmptyLines(dm_getUnclearList("Rules"));
  MultiSet<S> factsHistogram = ciMultiSet();

  fOr (S grouping : groupings) {
    S program = joinWithEmptyLines(rules, grouping);
    Cl<S> facts = philosophyBot1_quick(program);
    print("Got " + nFacts(facts) + " for " + quote(grouping));
    factsHistogram.addAll(facts);
  }

  ret factsHistogram;
}

download  show line numbers  debug dex   

Travelled to 3 computer(s): mqqgnosmbjvj, tvejysmllsmz, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027137
Snippet name: dm_ai_groupingsToDeducedFactsMultiSet
Eternal ID of this version: #1027137/3
Text MD5: 1bc7d2f8dc09e50186f0806686cf7ff7
Transpilation MD5: af825a0a10c519ce650d29f9d0464eeb
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-21 15:21:07
Source code size: 493 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 22 / 36
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1027137 & http://1027137.tinybrain.de