Download Jar. Libraryless. Click here for Pure Java version (13448L/99K).
1 | !7 |
2 | |
3 | p-exp { |
4 | S s = "My Mom always brings me sweets and candy when they come."; |
5 | |
6 | print_nlBefore("Parsing: " + s); |
7 | new AI_BottomUpParser1 parser; |
8 | //set ai_parseTree_makeWeights_verbose; |
9 | parser.maxDepth = /*15*/ /*18*/ /*22*/ 25; |
10 | parser.afterIteration = r { |
11 | //if ((parser.iterations % 10) == 0) |
12 | print("Iterations: " + parser.iterations + ", changes: " + parser.changes); |
13 | }; |
14 | /*parser.parse(s); |
15 | ChooseCategory root = ai_buParser_makeRootElement(parser); |
16 | print(root);*/ |
17 | ai_printParseTreeWithLevels(ai_parseToCulledTree(s, parser)); |
18 | } |
Began life as a copy of #1023825
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1023827 |
Snippet name: | Parse the problem sentence |
Eternal ID of this version: | #1023827/9 |
Text MD5: | f77435b876ddf8bd614044c4dfa17ffd |
Transpilation MD5: | d2dcf1c3d59bf7846a344bf48944f6f7 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-10 20:21:24 |
Source code size: | 577 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 351 / 981 |
Version history: | 8 change(s) |
Referenced in: | [show references] |