Download Jar. Libraryless. Click here for Pure Java version (11005L/80K).
1 | !7 |
2 | |
3 | p-exp { |
4 | S s = "I saw a movie {the other day}"; // test bad spacing too |
5 | L<S> tok = javaTokPlusCurly_dontKeep_simpleSpaces(s); |
6 | printStruct(tok); |
7 | new AI_BottomUpParser1 parser; |
8 | |
9 | // not even needed (if you use simple spaces) |
10 | // parser.categoriesAtWordIndex = litmap(4, ll("<adverbial_phrase>")); |
11 | |
12 | parser.parse(tok); |
13 | PTElement tree = ai_parseBottomUpToTree(parser); |
14 | ai_printParseTree(tree); |
15 | parser.printWordsAndGroups(); |
16 | } |
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: | 385 / 983 |
Version history: | 7 change(s) |
Referenced in: | [show references] |