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

16
LINES

< > BotCompany Repo | #1017484 // Test Bottom-Up Parser pregrouped [OK]

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

Download Jar. Libraryless. Click here for Pure Java version (11005L/80K).

!7

p-exp {
  S s = "I saw a movie {the  other  day}"; // test bad spacing too
  L<S> tok = javaTokPlusCurly_dontKeep_simpleSpaces(s);
  printStruct(tok);
  new AI_BottomUpParser1 parser;
  
  // not even needed (if you use simple spaces)
  // parser.categoriesAtWordIndex = litmap(4, ll("<adverbial_phrase>"));
  
  parser.parse(tok);
  PTElement tree = ai_parseBottomUpToTree(parser);
  ai_printParseTree(tree);
  parser.printWordsAndGroups();
}

Author comment

Began life as a copy of #1017482

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017484
Snippet name: Test Bottom-Up Parser pregrouped [OK]
Eternal ID of this version: #1017484/8
Text MD5: bb590063e47b3c63ec01bc64e913119c
Transpilation MD5: c0d5c021a3271d78d552a1b315c477b8
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-23 22:28:06
Source code size: 462 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 218 / 546
Version history: 7 change(s)
Referenced in: [show references]