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

23
LINES

< > BotCompany Repo | #1017311 // English Parser v7 (OK)

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Libraryless. Click here for Pure Java version (18584L/134K).

1  
!7
2  
3  
sclass EnglishParser > DynPrintLogWithInput {
4  
  transient Pair<S, L<ParseResult1>> lastResults;
5  
  
6  
  start {
7  
    dm_useLocallyCopiedMechLists();
8  
    
9  
    // In case lists change
10  
    doEvery(5000, r { update(inputChooser.input()) });
11  
  }
12  
  
13  
  void update(S s) {
14  
    temp enter();
15  
    L<S> tokInput = javaTokWithAngleBracketsC(s);
16  
    L<ParseResult1> results = ai_parser1_multipleCategories(s, mL("English parser top categories"));
17  
18  
    S rendered = ai_renderParseResults(results);
19  
    bool shouldPrint = lastResults == null || neq(rendered, ai_renderParseResults(lastResults.b));
20  
    lastResults = pair(s, results);
21  
    if (shouldPrint) print("\n> " + s + "\n" + sfu(tokInput) + "\n" + rendered);
22  
  }
23  
}

Author comment

Began life as a copy of #1017297

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: #1017311
Snippet name: English Parser v7 (OK)
Eternal ID of this version: #1017311/20
Text MD5: 09b1b3caf383a67864be09e049a37009
Transpilation MD5: 88c0c682f9a944d31138f0a902d1814f
Author: stefan
Category: javax / a.i.
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-17 16:59:53
Source code size: 727 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 507 / 1044
Version history: 19 change(s)
Referenced in: [show references]