Libraryless. Compilation Failed (3186L/21K).
1 | svoid ai_verifyNGramScorerResultsForLanguageDetectionTask(LanguageDetectionTask task) { |
2 | LPairS exprs = (LPairS) dm_callAndImport(dm_languageDetectionNGramScorersCRUD(), 'expressionsForTask, task.task()); |
3 | print("Checking " + nExpressions(exprs)); |
4 | |
5 | for (PairS p : exprs) { |
6 | double score = scoreNGramScorer(p.a, task.pos, task.neg); |
7 | double expected = parseDouble(p.b); |
8 | print(l(p.a) + " - " + expected + " / " + score); |
9 | if (expected != score) |
10 | print(" WAT: " + p.a); |
11 | } |
12 | } |
Began life as a copy of #1027505
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027516 |
Snippet name: | ai_verifyNGramScorerResultsForLanguageDetectionTask |
Eternal ID of this version: | #1027516/4 |
Text MD5: | acb154d2e296520cb72a5f7cef65ee53 |
Transpilation MD5: | 89910857964da498c246cddce65d2bf0 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-03-22 17:17:20 |
Source code size: | 508 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 182 / 265 |
Version history: | 3 change(s) |
Referenced in: | [show references] |