Download Jar. Libraryless. Click here for Pure Java version (19606L/140K).
!7 unset flag SymbolAsString. //set flag symbol_debug. p { ai_alternativeSmartBot(); ai_useThoughtSpaces(true); pnl(takeFirst(10, indexedTerms()); MultiMap<Symbol, TripleWeb> i0 = tripleIndex().positionalIndices[0]; print("findAIConcept = " + l(i0.get(symbol("findAIConcept"))); assertTrue(i0.containsKey(symbol("Java"))); print("Java = " + l(i0.get(symbol("Java"))); pnl(takeFirst(10, keys(i0))); Symbol a = symbol("Java"), b = symbol("is"), c = symbol("$X"); AbstractThoughtSpace ts = thoughtSpace(); print("ThoughtSpace: " + className(ts)); print("Java: " + l(ts.get(symbol("Java")))); print("Java/0: " + l(ts.get(symbol("Java"), 0))); set ai_triplesToTripleRefs_lazyList_debug; set ai_tripleToTripleRef_debug; L<TripleRef<Symbol>> l = ai_thoughtSpace_query(a, b, c, ts); print("Have " + l(l) + " (" + className(l) + ")"); pnlStruct(l); L<Symbol> l2; assertContainsIC(pnl(l2 = ai_texts("Java", "is", "$X")), symbol("a programming language")); print(l(l2)); print("OK"); }
Began life as a copy of #1012651
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: | #1012690 |
Snippet name: | Test GlobalThoughtSpace with ai_texts & fast symbols (OK) |
Eternal ID of this version: | #1012690/11 |
Text MD5: | 8d3ca9e20a12b1f51ba69062ee3172ba |
Transpilation MD5: | b026b76637a323e22ac52f07dd2ad194 |
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-10 21:22:51 |
Source code size: | 1060 bytes / 32 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 556 / 1322 |
Version history: | 10 change(s) |
Referenced in: | [show references] |