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

9
LINES

< > BotCompany Repo | #1012159 // ai_spec_searchForAnswer_v2

JavaX fragment (include)

static void ai_spec_searchForAnswer_v2(S s) {
  S t = ai_text(s, "parses to triple", "$X");
  if (t == null) ret;
  if (ai_text("$X", "answers", t) == null) ret;
  
  S rule = replaceJavaToken("{$Q -> parses to triple -> $T} & {$A -> answers triple -> $T} => {$A -> answers -> $Q}", "$Q", "{" + s + "}");
  print(">> " + rule);
  ai_spec_applyRule(rule);
}

Author comment

Began life as a copy of #1012153

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: #1012159
Snippet name: ai_spec_searchForAnswer_v2
Eternal ID of this version: #1012159/7
Text MD5: fecd84af75ced729304884ae3fe453df
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-22 09:33:09
Source code size: 364 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 424 / 446
Version history: 6 change(s)
Referenced in: [show references]