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

6
LINES

< > BotCompany Repo | #1026577 // sentenceSuffixesIterator - without full and without empty suffix

JavaX fragment (include)

static ItIt<S> sentenceSuffixesIterator(S s, O... _) {
  boolPar plusFull;
  LS tok = javaTokNPunctuationWithBrackets(s);
  ret mapI(countIterator_exclusive_step(3, l(tok)+toInt(plusFull), 2), i ->
    getSentenceSuffix(tok, i/2));
}

Author comment

Began life as a copy of #1026527

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026577
Snippet name: sentenceSuffixesIterator - without full and without empty suffix
Eternal ID of this version: #1026577/1
Text MD5: 343102f3abeac5bf6a623e7b35089c21
Author: stefan
Category: javax / nlp
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-14 18:55:04
Source code size: 238 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 153 / 192
Referenced in: [show references]