Libraryless. Click here for Pure Java version (6692L/45K).
sS ai_ngb_correctWords1_explain(S input, O... _) { optPar int maxPerWord = 3; optPar int minDistance = 1; optPar int maxDistance = 1; ret mapJavaTokens(s -> joinWithSlash( map(w -> w + "[" + ai_ngbWordList_multiSet().get(w) + "]", takeFirst(maxPerWord, sortByCalculatedFieldDesc(w -> ai_ngbWordList_multiSet().get(w), asCISet(allWithLevenICDistanceBetween(minDistance, maxDistance, ai_ngbWordListByFrequency(), s))))) ), input); }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
Snippet ID: | #1025894 |
Snippet name: | ai_ngb_correctWords1_explain |
Eternal ID of this version: | #1025894/4 |
Text MD5: | e6f9ec37c0796b707a27b52f80f250b4 |
Transpilation MD5: | 0dcf5d7f78df5f83273fb9615cb6e691 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-10-28 12:41:48 |
Source code size: | 465 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 186 / 292 |
Version history: | 3 change(s) |
Referenced in: | [show references] |