Download Jar. Libraryless. Click here for Pure Java version (19463L/138K).
1 | !7 |
2 | |
3 | sbool allTerms = true; |
4 | |
5 | p { |
6 | ai_alternativeSmartBot(); |
7 | |
8 | temp final ActualThoughtSpace ts = newThoughtSpace(); |
9 | thoughtSpaceSizePrinter(); |
10 | |
11 | ts.blockedB = litsymbolset("possibly related to:"); |
12 | L<TripleWeb> blocked = thoughtSpace_allBlocked(ts); |
13 | print("Blocked: " + l(blocked)); |
14 | |
15 | Collection<S> terms; |
16 | if (allTerms) |
17 | terms = allFullIndexedTerms(); |
18 | else |
19 | terms = asSet(ai_texts("$X", "possibly related to:", "$Y", ts.parent)); |
20 | |
21 | print("Scanning " + l(terms) + " terms of approx. " + ai_indexSize() + " (" + (allTerms ? "all" : "selected") + ")"); |
22 | |
23 | for (S term : terms) { |
24 | ai_spec_allWords(term); |
25 | ai_spec_apostrophS(term); |
26 | } |
27 | |
28 | print("Blocked: " + l(blocked) + ", recreated: " + ts.size()); |
29 | |
30 | new L<TripleWeb> gained; |
31 | new L<TripleWeb> ok; |
32 | MultiMap<T3<Symbol>, TripleWeb> _blocked = triplesByContentMap(blocked); |
33 | for (TripleWeb w : ts.allTriples()) { |
34 | T3<Symbol> t = new Triple<Symbol>(w); |
35 | if (_blocked.containsKey(t)) { |
36 | ok.add(w); |
37 | _blocked.remove(t); |
38 | } else |
39 | gained.add(w); |
40 | } |
41 | Collection<TripleWeb> lost = values(_blocked); |
42 | |
43 | printFirst10WithHeading(lost, "Lost Examples"); |
44 | printFirst10WithHeading(gained, "Gained Examples"); |
45 | printFirst10WithHeading(ok, "OK Examples (" + l(ok) + ")"); |
46 | print("Same: " + l(ok) + ", lost: " + nTriple(lost) + ", gained: " + nTriple(gained)); |
47 | } |
Began life as a copy of #1012724
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1012811 |
Snippet name: | Forget & Recreate v1 [recreate all "possibly related to:", OK, doesn't store anything yet] |
Eternal ID of this version: | #1012811/26 |
Text MD5: | 6ba5cabbce7e4a66eabdf65ebd7dec82 |
Transpilation MD5: | d702488e7df46806aeabb2a7269c76b1 |
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-12-14 19:36:44 |
Source code size: | 1417 bytes / 47 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 555 / 1176 |
Version history: | 25 change(s) |
Referenced in: | [show references] |