Download Jar. Libraryless. Click here for Pure Java version (18977L/135K).
1 | !7 |
2 | |
3 | p { |
4 | ai_alternativeSmartBot(); |
5 | ai_useThoughtSpaces(true); |
6 | |
7 | //pnl(takeFirst(10, indexedTerms()); |
8 | MultiMap<Symbol, TripleWeb> i0 = tripleIndex().positionalIndices[0]; |
9 | print("findAIConcept = " + l(i0.get(symbol("findAIConcept"))); |
10 | print("Java = " + l(i0.get(symbol("Java"))); |
11 | pnl(takeFirst(10, keys(i0))); |
12 | |
13 | Symbol a = symbol("Java"), b = symbol("is"), c = symbol("$X"); |
14 | AbstractThoughtSpace ts = thoughtSpace(); |
15 | print("ThoughtSpace: " + className(ts)); |
16 | print("Java: " + l(ts.get("Java"))); |
17 | print("Java/0: " + l(ts.get("Java", 0))); |
18 | L<TripleRef<Symbol>> l = ai_thoughtSpace_query(a, b, c, ts); |
19 | print("Have " + l(l) + " (" + className(l) + ")"); |
20 | pnlStruct(l); |
21 | |
22 | L<Symbol> l2; |
23 | assertContainsIC(pnl(l2 = ai_texts("Java", "is", "$X")), "a programming language"); |
24 | print(l(l2)); |
25 | print("OK"); |
26 | } |
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: | #1012651 |
Snippet name: | Test GlobalThoughtSpace with ai_texts (OK) |
Eternal ID of this version: | #1012651/30 |
Text MD5: | 82233ee6a4af0d615c9c336822386465 |
Transpilation MD5: | 65630939ce4d6b7d00250a85cf1eabee |
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 08:14:47 |
Source code size: | 854 bytes / 26 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 602 / 1459 |
Version history: | 29 change(s) |
Referenced in: | [show references] |