Download Jar. Libraryless. Click here for Pure Java version (10980L/72K).
1 | !7 |
2 | |
3 | static Map<S, Triple<S>> map; |
4 | static new HashMap<Pair<S>, Float> isMap; |
5 | |
6 | p { |
7 | ai_tripelize_preload(); |
8 | time2 { map = tripelizeGAC36k(); } |
9 | Map<S, Web> webs = mapValues(f webFromTriple, map); |
10 | Map<Web, S> rwebs = reversedMap(webs); |
11 | L<Web> isWebs = filter(rcurry(f web_containsRelation, "is?"), values(webs)); |
12 | //printWebs(isWebs); |
13 | print(l(isWebs)); |
14 | |
15 | for (Web web : isWebs) { |
16 | S a = web_text(web_firstNode(web)); |
17 | S b = web_text(web_secondNode(web)); |
18 | float value = toFloat(gac36k().get(rwebs.get(web))); |
19 | //print(toIntPercent(value) + ": " + a + " <is> " + b); |
20 | isMap.put(pair(a, b), value); |
21 | } |
22 | |
23 | for (Pair<S> p : keysSortedByValueDesc(isMap)) |
24 | print(toIntPercent(isMap.get(p)) + ": " + p.a + " <is> " + p.b); |
25 | } |
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: | 540 / 1313 |
Version history: | 12 change(s) |
Referenced in: | [show references] |