Uses 11335K of libraries. Click here for Pure Java version (11083L/74K).
1 | sS ai_ruleOfThree_solver_3(S db, S input) { |
2 | ret fixAOrAn(too_transformInput(input, too -> { |
3 | // load rules |
4 | too.addAll(lambdaMap ai_parseBasicLogicRule(tlft(db))); |
5 | |
6 | // turn words appearing in LHS and RHS into variables |
7 | too.addTransformer(f<BasicLogicRule<S>, O> ai_sharedPhrasesIntoDollarVars); |
8 | |
9 | // match input with rules |
10 | too_flexMatchRulesToTransformInput(too); |
11 | })); |
12 | } |
Began life as a copy of #1028827
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028917 |
Snippet name: | ai_ruleOfThree_solver_3 - like solver_1 but with shared phrases instead of words |
Eternal ID of this version: | #1028917/2 |
Text MD5: | b075fd99600422a7a08dd0aef54c8c91 |
Transpilation MD5: | 220de88c5986a926404c44a638843d6d |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-11 21:59:36 |
Source code size: | 410 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 255 / 366 |
Version history: | 1 change(s) |
Referenced in: | [show references] |