!7 sbool allTerms = true; p { ai_alternativeSmartBot(); temp final ActualThoughtSpace ts = newThoughtSpace(); thoughtSpaceSizePrinter(); ts.blockedB = litsymbolset("possibly related to:"); L blocked = thoughtSpace_allBlocked(ts); print("Blocked: " + l(blocked)); Collection terms; if (allTerms) terms = allFullIndexedTerms(); else terms = asSet(ai_texts("$X", "possibly related to:", "$Y", ts.parent)); print("Scanning " + l(terms) + " terms of approx. " + ai_indexSize() + " (" + (allTerms ? "all" : "selected") + ")"); for (S term : terms) { ai_spec_allWords(term); ai_spec_apostrophS(term); } print("Blocked: " + l(blocked) + ", recreated: " + ts.size()); new L gained; new L ok; MultiMap, TripleWeb> _blocked = triplesByContentMap(blocked); for (TripleWeb w : ts.allTriples()) { T3 t = new Triple(w); if (_blocked.containsKey(t)) { ok.add(w); _blocked.remove(t); } else gained.add(w); } Collection lost = values(_blocked); printFirst10WithHeading(lost, "Lost Examples"); printFirst10WithHeading(gained, "Gained Examples"); printFirst10WithHeading(ok, "OK Examples (" + l(ok) + ")"); print("Same: " + l(ok) + ", lost: " + nTriple(lost) + ", gained: " + nTriple(gained)); }