Uses 911K of libraries. Click here for Pure Java version (5357L/28K).
1 | !7 |
2 | |
3 | cmodule WordSplitSpike > DynPrintLog { |
4 | start-thread { |
5 | embedded double score_isAWord(S s) { ret ai_ngbWordList_wordScore(s); } |
6 | |
7 | double score = 1; |
8 | for (PairS $pair : splitStringInTwo_iterator("botcompany")) { |
9 | S $x = pairA($pair); |
10 | S $y = pairB($pair); |
11 | double score2 = score*score_isAWord($x); |
12 | double score3 = score2*score_isAWord($y); |
13 | emit(Scored(replaceVars_optRound("($x + $y)", |
14 | litmap(+$x, +$y)), score3)); |
15 | } |
16 | } |
17 | } |
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: | 228 / 340 |
Version history: | 1 change(s) |
Referenced in: | [show references] |