1 | svoid test_scoreNGramScorer() { |
2 | assertEqualsVerbose(1.0, scoreNGramScorer("abc^e", ll("abcd"), ll("def"))); |
3 | assertEqualsVerbose(0.5, scoreNGramScorer("b", ll("abcd"), ll("def"))); |
4 | assertEqualsVerbose(0.0, scoreNGramScorer("e^bc", ll("abcd"), ll("def"))); |
5 | } |
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: | 171 / 210 |
Version history: | 1 change(s) |
Referenced in: | [show references] |