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

25
LINES

< > BotCompany Repo | #1011131 // Test tripelizeGAC36k

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

Download Jar. Libraryless. Click here for Pure Java version (10980L/72K).

!7

static Map<S, Triple<S>> map;
static new HashMap<Pair<S>, Float> isMap;

p {
  ai_tripelize_preload();
  time2 { map = tripelizeGAC36k(); }
  Map<S, Web> webs = mapValues(f webFromTriple, map);
  Map<Web, S> rwebs = reversedMap(webs);
  L<Web> isWebs = filter(rcurry(f web_containsRelation, "is?"), values(webs));
  //printWebs(isWebs);
  print(l(isWebs));
  
  for (Web web : isWebs) {
    S a = web_text(web_firstNode(web));
    S b = web_text(web_secondNode(web));
    float value = toFloat(gac36k().get(rwebs.get(web)));
    //print(toIntPercent(value) + ": " + a + " <is> " + b);
    isMap.put(pair(a, b), value);
  }
  
  for (Pair<S> p : keysSortedByValueDesc(isMap))
    print(toIntPercent(isMap.get(p)) + ": " + p.a + " <is> " + p.b);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1011131
Snippet name: Test tripelizeGAC36k
Eternal ID of this version: #1011131/13
Text MD5: 9de66ae49dab9428b27630c17b186790
Transpilation MD5: 575f9f44eae12d301ec789676482181e
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-15 20:58:35
Source code size: 773 bytes / 25 lines
Pitched / IR pitched: No / No
Views / Downloads: 412 / 987
Version history: 12 change(s)
Referenced in: [show references]