Uses 911K of libraries. Click here for Pure Java version (16849L/99K).
!7 sclass Entry { long msgID; S originalLine; S interpretableText; S ruleID; //S matchedRuleStruct; sS _fieldOrder = "msgID originalLine interpretableText"; } set flag DynModule. cmodule InterpretableTest > DynObjectTable<Entry> { transient int maxInterpretablesPerLine = 20; start { addCountToName(); thread { scan(); } } visualize { ret withCenteredButtons(super.visualize(), "Scan", rThread scan); } void scan enter { new L<Entry> list; new Flag interrupted; temp AutoCloseable action = dm_currentAction("Scanning chat", rRaiseFlag(interrupted)); F0<GazelleEvalContext> contextMaker = new GazelleContextCache_v2().fill(); L<GazelleLine> lines = dm_discord_allLines(); int i = 0; for (GazelleLine line : reversed(lines)) { ++i; if (!licensed() || interrupted!) break; Collection<GInterpretable> l = gazelle_preprocess(line.text, +contextMaker); for (GInterpretable intp : l) list.add(nu Entry(originalLine := line.text, msgID := line.msgID, interpretableText := intp.text, ruleID := intp.ruleID)); call(action, 'setText, "Found " + n2(list, "interpretable") + ", scanned " + i + "/" + n2(lines, "line")); } setList(list); } }
Began life as a copy of #1022180
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022191 |
Snippet name: | Interpretables Test v4 [shortened, OK] |
Eternal ID of this version: | #1022191/4 |
Text MD5: | 7183448be0b76fa87ae3f2b6158f737f |
Transpilation MD5: | f7b7bb600d11ba161cfc908afea59a9a |
Author: | stefan |
Category: | javax / gazelle |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-10 16:01:54 |
Source code size: | 1297 bytes / 44 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 324 / 426 |
Version history: | 3 change(s) |
Referenced in: | [show references] |