svoid test_scoreNGramScorer() { assertEqualsVerbose(1.0, scoreNGramScorer("abc^e", ll("abcd"), ll("def"))); assertEqualsVerbose(0.5, scoreNGramScorer("b", ll("abcd"), ll("def"))); assertEqualsVerbose(0.0, scoreNGramScorer("e^bc", ll("abcd"), ll("def"))); }
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: | #1027496 |
Snippet name: | test_scoreNGramScorer |
Eternal ID of this version: | #1027496/2 |
Text MD5: | 01e5d75bc4930525ed5d9d1e51e45b3f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-03-22 15:36:05 |
Source code size: | 266 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 169 / 208 |
Version history: | 1 change(s) |
Referenced in: | [show references] |