Uses 4281K of libraries. Click here for Pure Java version (7958L/55K/198K).
!7 static JLabel l; static Map<S> consequentsMap = synchroCIMap(), precedentsMap = synchroCIMap(); p-noconsole { autoUpdate(); final JFrame frame = showMaximizedFrame(jscroll_verticalExtend_trackWidth(jTiledBackground(#1007195, setForeground(Color.white, setFontSize(120, l = jcenteredlabel()))))); final L<VF1<S>> receivers = ll( consequentsMap_receiver(consequentsMap), precedentsMap_receiver(precedentsMap)); time "Loading" { loading { mapVoidMulti(receivers, map unquoteAndDropAngleBracketStuff(dropLast(linesOfFile(speechRecognitionLog())))); } } tailFileLinewisePlusLastLine(speechRecognitionLog(), 100, voidfunc(S utterance) { utterance = trimLastLine(utterance); utterance = unquoteAndDropAngleBracketStuff(utterance); if (empty(utterance)) ret; print(">> " + utterance); mapVoidMulti(receivers, ll(utterance)); S answer = consequentsMap.get(utterance); if (empty(answer)) answer = precedentsMap.get(utterance); if (nempty(answer)) utterance += "\n\n" + answer; setTitle(frame, utterance); setText(l, jlabel_textAsHTML_center(utterance)) }); }
Began life as a copy of #1014125
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1014131 |
| Snippet name: | VisualKatze 3 [Association Machine, Forward+Backward, OK, run with #1013936] |
| Eternal ID of this version: | #1014131/8 |
| Text MD5: | 9de4cb70766e2e08403547c7cd137437 |
| Transpilation MD5: | b88ed98bce1ec1e972ac4c771853d333 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-04-11 05:18:52 |
| Source code size: | 1187 bytes / 35 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 711 / 895 |
| Version history: | 7 change(s) |
| Referenced in: | [show references] |