Libraryless. Click here for Pure Java version (15829L/111K).
1 | !7 |
2 | |
3 | set flag NoFancyMechParsing. |
4 | |
5 | sclass MatchInput > DynPrintLogWithInput { |
6 | start { dm_useLocallyCopiedMechLists(); } |
7 | |
8 | void update(S s) { |
9 | L<S> tok = printStruct(javaTokWithAngleBracketsC(print("\n> ", s))); |
10 | SS categories = mechMapCI("Word categories"); |
11 | printStruct(categories); |
12 | |
13 | for (S word : tok) |
14 | for (S key, S listName : categories) { |
15 | if (mechSetCI(listName).contains(word)) |
16 | print(word + " => " + key); |
17 | } |
18 | } |
19 | } |
Began life as a copy of #1017207
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017210 |
Snippet name: | Words To Categories [OK] |
Eternal ID of this version: | #1017210/6 |
Text MD5: | 5b02d8f0e041356275b365cc075bba70 |
Transpilation MD5: | 3c4d59c25b68dbe3e6008c398b8ba466 |
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: | 2018-07-14 12:19:15 |
Source code size: | 487 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 387 / 923 |
Version history: | 5 change(s) |
Referenced in: | [show references] |