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

18
LINES

< > BotCompany Repo | #1023827 // Parse the problem sentence

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

Download Jar. Libraryless. Click here for Pure Java version (13448L/99K).

!7

p-exp {
  S s = "My Mom always brings me sweets and candy when they come.";
  
  print_nlBefore("Parsing: " + s);
  new AI_BottomUpParser1 parser;
  //set ai_parseTree_makeWeights_verbose;
  parser.maxDepth = /*15*/ /*18*/ /*22*/ 25;
  parser.afterIteration = r {
    //if ((parser.iterations % 10) == 0)
      print("Iterations: " + parser.iterations + ", changes: " + parser.changes);
  };
  /*parser.parse(s);
  ChooseCategory root = ai_buParser_makeRootElement(parser);
  print(root);*/
  ai_printParseTreeWithLevels(ai_parseToCulledTree(s, parser));
}

Author comment

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: 163 / 629
Version history: 8 change(s)
Referenced in: [show references]