Libraryless. Click here for Pure Java version (6692L/45K).
1 | sS ai_ngb_correctWords1_explain(S input, O... _) { |
2 | optPar int maxPerWord = 3; |
3 | optPar int minDistance = 1; |
4 | optPar int maxDistance = 1; |
5 | |
6 | ret mapJavaTokens(s -> joinWithSlash( |
7 | map(w -> w + "[" + ai_ngbWordList_multiSet().get(w) + "]", |
8 | takeFirst(maxPerWord, sortByCalculatedFieldDesc(w -> ai_ngbWordList_multiSet().get(w), |
9 | asCISet(allWithLevenICDistanceBetween(minDistance, maxDistance, ai_ngbWordListByFrequency(), s))))) |
10 | ), input); |
11 | } |
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: | 187 / 293 |
Version history: | 3 change(s) |
Referenced in: | [show references] |