Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1011352 // Test Reasoning In WebThoughtSpace [dev.]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (14683L/101K).

!7

p {
  new WebThoughtSpace ts;
  ts.addWeb(webFromTriple("a sentence", "is", "a string of words"));
  printStruct(ts);
  
  //ai_applyWebFunctionToThoughtSpace(f web_reverseIs_ask);
  
  for (WebRelation r : thoughtSpace_search_dollarXY(ts, "$X", "is", "$Y")) {
    thoughtSpace_addQuestionTriple(ts, web_text(r.b), "is?", web_text(r.a));
  }
  
  printWebs(ts.webs);
}

Author comment

Began life as a copy of #1011346

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: #1011352
Snippet name: Test Reasoning In WebThoughtSpace [dev.]
Eternal ID of this version: #1011352/5
Text MD5: 79f514ff69e46ceb2e844cbca755a755
Transpilation MD5: 81ba2cd63a1bccae89abf0e9c0ee11bf
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-10-25 22:17:11
Source code size: 386 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 519 / 1080
Version history: 4 change(s)
Referenced in: