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

12
LINES

< > BotCompany Repo | #1018101 // Drop Trailing Appellations Spike [dev.]

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

Download Jar. Libraryless. Click here for Pure Java version (7567L/54K).

1  
!7
2  
3  
p-exp {
4  
  S input = "hey, bot, what time is it yo bot?";
5  
  
6  
  Map<S, O> wordTree = listToReversedWordTree(mL("Appellations"));
7  
  
8  
  L<S> tok = javaTokNPunctuation(input);
9  
  L<Int> indices = aOfPairs(matchEndUsingWordTree_all(tok, wordTree));
10  
  for (int i : indices)
11  
    print(joinSubList(tok, 0, i));
12  
}

Author comment

Began life as a copy of #1018098

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1018101
Snippet name: Drop Trailing Appellations Spike [dev.]
Eternal ID of this version: #1018101/1
Text MD5: ffbf0e72707a733bb33f667c54ef66e0
Transpilation MD5: 1497fa326e57c6fd7d1f2884a0fee788
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-09-02 13:05:05
Source code size: 317 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 402 / 986
Referenced in: [show references]