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

19
LINES

< > BotCompany Repo | #1017280 // Parse with spreads & word categories [Spike, dev.]

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

Download Jar. Uses 3874K of libraries. Click here for Pure Java version (7461L/54K).

!7

static LS questions = tenGACQuestions_set1();
static new Map<S, Set<S>> categoryToPhrases;

p-exp {
  useLocalMechListCopies();
  for (PairS p : mL_pairs("Word category => List"))
    getOrCreateCISet(categoryToPhrases, p.a).addAll(mL(p.b));
  for (S cat : keys(categoryToPhrases))
    print(cat + " => " + l(categoryToPhrases.get(cat)));
    
  //for (S pat : mL("English sentence patterns"))
  
  for (S input : questions) {
    L<S> tok = javaTokWithAngleBracketsC(input);
    printStruct(tok);
  }
}

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: #1017280
Snippet name: Parse with spreads & word categories [Spike, dev.]
Eternal ID of this version: #1017280/5
Text MD5: 795f49e515e50c351eb184663adafd47
Transpilation MD5: d5bab615c550116d660ce5c830c261ba
Author: stefan
Category: javax / parsing
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-16 13:44:25
Source code size: 525 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 238 / 697
Version history: 4 change(s)
Referenced in: [show references]