Uses 911K of libraries. Click here for Pure Java version (5357L/28K).
!7 cmodule WordSplitSpike > DynPrintLog { start-thread { embedded double score_isAWord(S s) { ret ai_ngbWordList_wordScore(s); } double score = 1; for (PairS $pair : splitStringInTwo_iterator("botcompany")) { S $x = pairA($pair); S $y = pairB($pair); double score2 = score*score_isAWord($x); double score3 = score2*score_isAWord($y); emit(Scored(replaceVars_optRound("($x + $y)", litmap(+$x, +$y)), score3)); } } }
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025976 |
Snippet name: | Word Split Spike |
Eternal ID of this version: | #1025976/2 |
Text MD5: | 7d2b9667d1d49f2cef8312178008ee9b |
Transpilation MD5: | 6c5ae61b6635ee5c4e0264e8b006ed0c |
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: | 2019-11-04 20:40:13 |
Source code size: | 494 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 226 / 338 |
Version history: | 1 change(s) |
Referenced in: | [show references] |