1 | static void ai_spec_searchForAnswer_v2(S s) { |
2 | S t = ai_text(s, "parses to triple", "$X"); |
3 | if (t == null) ret; |
4 | if (ai_text("$X", "answers", t) == null) ret; |
5 | |
6 | S rule = replaceJavaToken("{$Q -> parses to triple -> $T} & {$A -> answers triple -> $T} => {$A -> answers -> $Q}", "$Q", "{" + s + "}"); |
7 | print(">> " + rule); |
8 | ai_spec_applyRule(rule); |
9 | } |
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: | 497 / 521 |
Version history: | 6 change(s) |
Referenced in: | [show references] |