Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1027512 // applyNGramScorer

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2440L/15K).

static int applyNGramScorer(S expr, S s) {
  Pair<LS> parsed = parseNGramScorerExpression(expr);
  ret substringsScoreICPosNeg(s, parsed.a, parsed.b);
}

Author comment

Began life as a copy of #1027509

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: #1027512
Snippet name: applyNGramScorer
Eternal ID of this version: #1027512/3
Text MD5: cbb19aa61f20a8daa48976b9dee49a1d
Transpilation MD5: a5bc28322dd890d96e13526f34d4170e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-22 16:42:02
Source code size: 155 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 228 / 292
Version history: 2 change(s)
Referenced in: [show references]