!7 static Map> map; static new HashMap, Float> isMap; p { ai_tripelize_preload(); time2 { map = tripelizeGAC36k(); } Map webs = mapValues(f webFromTriple, map); Map rwebs = reversedMap(webs); L 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 + " " + b); isMap.put(pair(a, b), value); } for (Pair p : keysSortedByValueDesc(isMap)) print(toIntPercent(isMap.get(p)) + ": " + p.a + " " + p.b); }